Skip to content
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

Error: Failed to install 'brinla': package ‘INLA’ is not available #3

Open
fredriklohaa opened this issue Sep 21, 2019 · 5 comments

Comments

@fredriklohaa
Copy link

fredriklohaa commented Sep 21, 2019

Dear Prof. Julian Faraway,

I am trying to install your package and am using the command:

with_libpaths(new="C:/Program Files/R/R-3.6.1/library/",install_github("julianfaraway/brinla"))
I get the error message:

Error: Failed to install 'brinla' from GitHub:
(converted from warning) package ‘INLA’ is not available (for R version 3.6.1)

Yet I have INLA installed on my computer: This is INLA_19.09.18 built 2019-09-18 17:52:48 UTC.
See www.r-inla.org/contact-us for how to get help.

Do you know what is wrong?

@julianfaraway
Copy link
Owner

Maybe this is because you are not using the install method recommended in the README?

@rancoper
Copy link

rancoper commented Sep 30, 2020

Dear Prof. Julian Faraway @julianfaraway

Using the install method in the README was not enough to install brinla. Look below the message in the Console:

remotes::install_github("julianfaraway/brinla")
Downloading GitHub repo julianfaraway/brinla@HEAD
Skipping 1 packages not available: INLA
✓ checking for file ‘/private/var/folders/j3/z0zylnbx7yx2jsdv8bg82gk00000gn/T/Rtmp4RJ8ZL/remotes39ee6e7a60a5/julianfaraway-brinla-338abb5/DESCRIPTION’ ...
─ preparing ‘brinla’:
✓ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘brinla_0.1.0.tar.gz’
** installing source package ‘brinla’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package ‘sp’ was built under R version 3.6.2
Execution halted
ERROR: lazy loading failed for package ‘brinla’
** removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/brinla’
Error: Failed to install 'brinla' from GitHub:
(converted from warning) installation of package ‘/var/folders/j3/z0zylnbx7yx2jsdv8bg82gk00000gn/T//Rtmp4RJ8ZL/file39ee245f294d/brinla_0.1.0.tar.gz’ had non-zero exit status

Do you know what is wrong?

Ps: I also tried with
library(devtools)
install_github("julianfaraway/brinla")

@julianfaraway
Copy link
Owner

R is currently at version 4.0.2 but you are using a version of sp built for 3.6.2. You could try updating. Also it is best to install INLA first - the log implies you have not done this yet.

@sandyherho
Copy link

sandyherho commented Feb 3, 2021

Prof. @julianfaraway ,
I got the same problem even though I followed exactly the README file and use R version 4.0.2. Here is the error message:

Error: (converted from warning) package 'Matrix' was built under R version 4.0.3 Execution halted ERROR: lazy loading failed for package 'brinla' removing 'D:/Program Files/R/R-4.0.2/library/brinla' Error: Failed to install 'brinla' from GitHub: (converted from warning) installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpWovSD0/fileb184ebe6742/brinla_0.1.0.tar.gz’ had non-zero exit status

Is the brinla package use another version of Matrix package?
Thanks.

@julianfaraway
Copy link
Owner

I do not think this is the same problem and it does not seem to be a problem with brinla. It seems you are using a version of Matrix for 4.0.3 whereas you have 4.0.2 installed. The error appears to result from this mismatch. I suggest you update your version of R to 4.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants