Code Monkey home page Code Monkey logo

Comments (4)

datnamer avatar datnamer commented on July 18, 2024

Now I have a new error message: "could not spawn Rscript -e 'for (nm in c("R_HOME","R_DOC_DIR","R_INCLUDE_DIR","R_SHARE_DIR","LD_LIBRARY_PATH")) print(Sys.getenv(nm),quote=FALSE)': no such file or directory (ENOENT)
while loading C:\Users\User.julia\v0.3\RCall\deps\build.jl, in expression starting on line 3"

My RCall/deps directory only has gitignore and build.jl, but Pkg.dir("RCall","deps","deps.jl") points me to deps.jl. Any suggestions please?

from rcall.jl.

dmbates avatar dmbates commented on July 18, 2024

Earlier you said the you have set Rscript (capitalization may be important) on your windows path but the error message says that it could not spawn an Rscript process. You can check by starting Julia and entering

; Rscript<Enter>

The prompt should change after you type the ; and the result should be something like

shell> Rscript
Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]

--options accepted are
  --help              Print usage and exit
  --version           Print version and exit
  --verbose           Print information on progress
  --default-packages=list
                      Where 'list' is a comma-separated set
                        of package names, or 'NULL'
or options to R, in addition to --slave --no-restore, such as
  --save              Do save workspace at the end of the session
  --no-environ        Don't read the site and user environment files
  --no-site-file      Don't read the site-wide Rprofile
  --no-init-file      Don't read the user R profile
  --restore           Do restore previously saved objects at startup
  --vanilla           Combine --no-save, --no-restore, --no-site-file
                        --no-init-file and --no-environ

'file' may contain spaces but not shell metacharacters
Expressions (one or more '-e <expr>') may be used *instead* of 'file'
See also  ?Rscript  from within R

If this doesn't happen then you need to determine what the shell from within Julia sees as a path. Unfortunately that is well beyond my understanding of Windows.

Because you asked, the script deps/build.jl is what creates the file deps/deps.jl by running Rscript.

There is a workaround which is to start R or RStudio and execute the line

for (nm in c("R_HOME","R_DOC_DIR","R_INCLUDE_DIR","R_SHARE_DIR","LD_LIBRARY_PATH")) print(Sys.getenv(nm),quote=FALSE)

to obtain suitable values for those environment variables. That's all that the deps/build.jl script is doing.

from rcall.jl.

simonbyrne avatar simonbyrne commented on July 18, 2024

@datnamer Hopefully this should be working on Windows now. Would you be willing to give it a try?

from rcall.jl.

simonbyrne avatar simonbyrne commented on July 18, 2024

Please reopen if this is still an issue.

from rcall.jl.

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.