Comments (8)
Unfortunately, I'm afraid I haven't looked at RCall.jl for some time, and my bandwidth is rather limited at the moment.
from condapkg.jl.
Perhaps you need to activate the Conda environment in your Julia session first like PythonCall does here: https://github.com/JuliaPy/PythonCall.jl/blob/0056de8711e274b3d8084d19a23fe54adf5d0640/src/cpython/context.jl#L68
from condapkg.jl.
Short remark: When simple using R, it is probably sufficient to just set
ENV["R_HOME"] = CondaPkg.envdir() * "/lib/R"
and rebuild RCall (Probably a similar approach also works for PyCall)
from condapkg.jl.
I tried running the following
julia> using CondaPkg
julia> ENV["R_HOME"] = CondaPkg.envdir() * "/lib/R"
julia> import Pkg
julia> Pkg.build("RCall")
julia> import RCall
┌ Warning: RCall.jl: During startup - Warning messages:
│ 1: package ‘utils’ in options("defaultPackages") was not found
│ 2: package ‘stats’ in options("defaultPackages") was not found
└ @ RCall ~/.julia/packages/RCall/gOwEW/src/io.jl:172
The CondaPkg environment does not have a proper R setup... I am confused. Any help is highly appreciated
Edit: CondaPkg.status()
looks good
julia> CondaPkg.status()
CondaPkg Status /home/ssahm/Tmp/tmp-julia/condapkg/CondaPkg.toml
Environment
/home/ssahm/Tmp/tmp-julia/condapkg/.CondaPkg/env
Packages
r-base v4.3.1
r-codedepends v0.6.5
r-globals v0.16.2
Channels
bioconda
conda-forge
from condapkg.jl.
@simonbyrne maybe you can help?
EDIT: This last error rather looks like this issue could be migrated to RCall.jl actually
from condapkg.jl.
Thank you for your comments. It turned out it was a linux distribution specific problem which is already reported at anaconda. Concretely you need to have /usr/bin/which
available on your system for R...
It works now that I've symlinked /usr/bin/which
from condapkg.jl.
related issue: JuliaInterop/RCall.jl#480 (tries to improve RCall.jl for better integration with CondaPkg.jl without the need of Pkg.build("RCall")
)
from condapkg.jl.
Short remark: When simple using R, it is probably sufficient to just set
ENV["R_HOME"] = CondaPkg.envdir() * "/lib/R"and rebuild RCall (Probably a similar approach also works for PyCall)
this is the final way I am using
import CondaPkg
ENV["R_HOME"] = CondaPkg.envdir() * "/lib/R"
import Pkg
Pkg.build("RCall")
using RCall
from condapkg.jl.
Related Issues (20)
- Using CondaPkg with R Packages HOT 4
- Incorrect cuda-nvcc version HOT 3
- Not able to specify “extras” in `pip_add` ? HOT 1
- Set conda environment for a package HOT 2
- CondaPkg constantly uninstalling, reinstalling all packages HOT 4
- `conda-build` and `conda skeleton` HOT 3
- Automatically load conda packages from the dependend julia packages HOT 3
- To do: ignore indirect dependencies on CondaPkg
- add preferences to control allowed channels and priority
- freeze the environment by default when it is activated HOT 2
- add completions for rm, pip_rm and channel_rm HOT 1
- dependency overrides HOT 1
- [Bug] file is not passed to write_toml HOT 2
- only add channel if it is not already added
- using CondaPkg with Pluto leads to unnecesarry resolves HOT 7
- Post install/update hook HOT 3
- Feature Request: Support CONDA_CHANNELS to set conda channels HOT 1
- access denied.: "C:\Users\...\v1.9\.CondaPkg\env\DLLs\_ctypes.pyd.mamba_trash" HOT 1
- `pip_add` for URLs HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from condapkg.jl.