Skip to content

Commit b70d026

Browse files
Merge pull request #6925 from ProfFancyPants/fread-fileinfo
Updating fread's file.info argument to avoid uname and udomain lookup.
2 parents 906d026 + 55943c7 commit b70d026

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,6 @@ Authors@R: c(
100100
person("Vincent", "Rocher", role="ctb"),
101101
person("Vijay", "Lulla", role="ctb"),
102102
person("Aljaž", "Sluga", role="ctb"),
103-
person("Bill", "Evans", role="ctb")
103+
person("Bill", "Evans", role="ctb"),
104+
person("Reino", "Bruner", role="ctb")
104105
)

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
7. `fwrite()` now avoids a crash when translating strings into a different encoding, [#6883](https://github.com/Rdatatable/data.table/issues/6883). Thanks @filipemsc for the report and @aitap for the fix.
3030

31+
8. `fread()` no longer warns on certain systems on R 4.5.0+ where the file owner can't be resolved, [#6918](https://github.com/Rdatatable/data.table/issues/6918). Thanks @ProfFancyPants for the report and PR.
3132

3233
## NOTES
3334

R/fread.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ yaml=FALSE, tmpdir=tempdir(), tz="UTC")
8888
on.exit(unlink(tmpFile), add=TRUE)
8989
# nocov end
9090
}
91-
file_info = file.info(file)
91+
file_info = file.info(file, extra_cols=FALSE)
9292
if (is.na(file_info$size)) stopf("File '%s' does not exist or is non-readable. getwd()=='%s'", file, getwd())
9393
if (isTRUE(file_info$isdir)) stopf("File '%s' is a directory. Not yet implemented.", file) # Could use dir.exists(), but we already ran file.info().
9494
if (!file_info$size) {

0 commit comments

Comments
 (0)