GithubHelp home page GithubHelp logo

Comments (4)

tdhock avatar tdhock commented on July 19, 2024

is quoting needed somewhere?

from data.table.

MichaelChirico avatar MichaelChirico commented on July 19, 2024

The key looks like here:

'file:' is not recognized as an internal or external command,
operable program or batch file.

As noted in nearby comments, the test is about simulating download.file() without needing internet access by passing file:// paths.

What does this do on the machine in question?

writeLines(letters, tmp<-tempfile())
download.file(paste0("file://", tmp), tmp2<-tempfile(), method="internal")
readLines(tmp2)

from data.table.

tdhock avatar tdhock commented on July 19, 2024
> 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"

from data.table.

D3SL avatar D3SL commented on July 19, 2024

@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 map()-like commands without using an anonymous function so you can feed x to file= instead of the default first input.

from data.table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.