Skip to content

Error building Rcall: R cannot be found #326

@chriselrod

Description

@chriselrod
julia> ENV["R_HOME"]
"/usr/lib64/R"

julia> run(`Rscript -e "R.home()"`)
[1] "/usr/lib64/R"
Process(`Rscript -e 'R.home()'`, ProcessExited(0))

(v1.3) pkg> build RCall
  Building Conda  `~/.julia/packages/Conda/kLXeC/deps/build.log`
  Building RCall  `~/.julia/packages/RCall/iojZI/deps/build.log`
┌ Error: Error building `RCall`: 
│ ERROR: LoadError: R cannot be found. Set the "R_HOME" environment variable to re-run Pkg.build("RCall").
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /home/chriselrod/.julia/packages/RCall/iojZI/deps/build.jl:49
│  [3] include at ./boot.jl:328 [inlined]
│  [4] include_relative(::Module, ::String) at ./loading.jl:1094
│  [5] include(::Module, ::String) at ./Base.jl:31
│  [6] include(::String) at ./client.jl:432
│  [7] top-level scope at none:5in expression starting at /home/chriselrod/.julia/packages/RCall/iojZI/deps/build.jl:10
└ @ Pkg.Operations ~/Documents/languages/julia/usr/share/julia/stdlib/v1.3/Pkg/src/backwards_compatible_isolation.jl:647

julia> versioninfo()
Julia Version 1.3.0-alpha.63
Commit 7f2922eb09* (2019-08-06 03:27 UTC)
Platform Info:
  OS: Linux (x86_64-generic-linux)
  CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.0 (ORCJIT, skylake)

I've tried a lot of different values for "R_HOME", and have always seen the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions