-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R
Package Install Fails within Julia REPL - Succeeds in Native R
Console
#416
Comments
This is also a problem for me. Perhaps the issue is that Conda.jl installs an older version of R, e.g.,
|
I am also running into this with R 4.0.4 on ARM64 installed via apt-get install -y r-base r-base-dev on docker julia:1.8.5. (i.e. no Conda, but truely separately installed R) (this R version is kind of the only option if you want to use a precompiled R for ARM64) |
This feels an old issue where the Julia links to a different version of some C/C++ standard libs than R does. In the past, you had to fix this by manually setting |
@TheCedarPrince what happens if you specify |
julia> R"""
install.packages('gridExtra',method="wget")
"""
--2024-07-21 20:52:12-- https://cloud.r-project.org/src/contrib/gridExtra_2.3.tar.gz
Resolving cloud.r-project.org (cloud.r-project.org)... 13.249.190.36, 13.249.190.18, 13.249.190.119, ...
Connecting to cloud.r-project.org (cloud.r-project.org)|13.249.190.36|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1062844 (1.0M) [application/x-gzip]
Saving to: ‘/tmp/RtmpvNSHNO/downloaded_packages/gridExtra_2.3.tar.gz’
/tmp/RtmpvNSHNO/downloaded_ 100%[==========================================>] 1.01M --.-KB/s in 0.1s
2024-07-21 20:52:13 (8.69 MB/s) - ‘/tmp/RtmpvNSHNO/downloaded_packages/gridExtra_2.3.tar.gz’ saved [1062844/1062844]
* installing *source* package ‘gridExtra’ ...
** package ‘gridExtra’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (gridExtra)
┌ Warning: RCall.jl: Installing package into ‘/home/gebbie/R/x86_64-pc-linux-gnu-library/4.2’
│ (as ‘lib’ is unspecified)
│
│ The downloaded source packages are in
│ ‘/tmp/RtmpvNSHNO/downloaded_packages’
└ @ RCall ~/.julia/packages/RCall/FEbLj/src/io.jl:172
RObject{NilSxp}
NULL |
I am currently attempting to install some
R
libraries from withinJulia
viaRCall
. It seems to be failing with an error message that looks like this:Testing my sanity, I attempted the install via the native
R
console and the install succeeded correctly. I am usingR
version4.0.5
andJulia
version1.6.0
. Here is the full information on the install:This seems related to #341 and a workaround I found is to install the
R
packages in the nativeR
console, and then import them from within Julia. Any thoughts as to what is happening? Thanks!The text was updated successfully, but these errors were encountered: