-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file path issues when testing on windows #6116
Comments
is quoting needed somewhere? |
The key looks like here:
As noted in nearby comments, the test is about simulating What does this do on the machine in question? writeLines(letters, tmp<-tempfile())
download.file(paste0("file://", tmp), tmp2<-tempfile(), method="internal")
readLines(tmp2) |
> writeLines(letters, tmp<-tempfile())
> download.file(paste0("file://", tmp), tmp2<-tempfile(), method="internal")
> readLines(tmp2)
[1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s"
[20] "t" "u" "v" "w" "x" "y" "z" so I think it has something to do with the fread logic "if there is a space it must be a system command" |
@tdhock that's exactly what it is. Despite the error message referring to v1.11.6 this seems like a very recent change in behavior, I never had this issue before. This also makes fread incompatible with any |
closing because I no longer have access to the windows computer where I had this issue, and it does not happen on my new windows computer. |
I still have this on my windows 10 work machine with data.table 1.15.4. Any attempt to load a file with a space in the name will result in data.table trying to treat it as a system command. What has changed in your environment with the new windows computer? R version, IDE, is your environment contaminated with a different version/branch of data.table's code or functions? |
@D3SL can you try it with the dev version? |
also running sessionInfo() may be helpful, can you please share that with us @D3SL ? |
Here's my sessioninfo. I'll have to try updating to the latest dev version tomorrow.
|
Hi! I expected tests should pass on windows, but I am observing two failures, related to #1668 (same test numbers, not same failure)
Error message says above says that the problem is that a path with "Program Files" is being treated as a system command, so I thought the fix should be changing fread(f) to fread(file=f), but it looks like that is already done in another test (see below), so I wonder what should the fix be?
here is the related code in tests.Rraw:
https://github.com/Rdatatable/data.table/blob/65fbc2af1e7ce368d798d25612e1c16d336780d0/inst/tests/tests.Rraw#L6009-L6028
The text was updated successfully, but these errors were encountered: