Comments (4)
I have given some information on my current workaround here: JuliaInterop/RCall.jl#480
from condapkg.jl.
Such a tutorial probably belongs with RCall not with CondaPkg. However I'll happily add links to "upstream tutorials" (on RCall/PythonCall/etc) to the README.
from condapkg.jl.
Sounds reasonable. I will try to do that as a next step after getting this PR merged which should make the integration more straight forward.
from condapkg.jl.
I wonder whether you might be able to help test this? If you are able to test/review it might help with getting PRs merged.
The first step is to try this PR from RCall: JuliaInterop/RCall.jl#496
pkg> add "https://github.com/frankier/RCall.jl.git#preferences-r-installation"
The second is to run this (you will have to add Libdl + PreferenceTools to your project for now)
using CondaPkg
using Preferences
using Libdl
using PreferenceTools
function locate_libR(Rhome)
@static if Sys.iswindows()
libR = joinpath(Rhome, "bin", Sys.WORD_SIZE==64 ? "x64" : "i386", "R.dll")
else
libR = joinpath(Rhome, "lib", "libR.$(Libdl.dlext)")
end
return libR
end
CondaPkg.resolve()
target_rhome = "$(CondaPkg.envdir())/lib/R"
PreferenceTools.add(
"RCall",
"Rhome" => target_rhome,
"libR" => locate_libR(target_rhome)
)
e.g. put it in a file setup_rcondapkg.jl
and run as part of your top level project julia --project=. setup_rcondapkg.jl
. Then you should be able to add this to CondaPkg.toml
[deps]
r-mypkg = ""
r = ""
The second step is a bit annoying but I guess it should be possible to streamline it to some extent e.g. adding an extension package to RCall.jl
.
from condapkg.jl.
Related Issues (20)
- 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
- How to make RCall.jl use a CondaPkg.jl environment? HOT 8
- 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
- `critical libmamba could not load prefix data` after conda add failed due to low memory HOT 1
- Make `--override-channels` optional? HOT 1
- Testing a package that depend on CondaPkg.jl creates a new environment every time HOT 4
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.