- This topic has 3 replies, 4 voices, and was last updated 8 months, 1 week ago by
Nichcha Subdee.
-
AuthorPosts
-
-
2024-07-23 at 12:33 am #44902
Soe Htike
ParticipantI’ve had a big headache installing INLA into R Studio. I tried to update both R and R Studio to the latest versions. Still, the command provided in session 1.6 did not work for me. The command let me install INLA but when I run library function, R Studio kept on showing me error message like INLA needs matrix to run properly. So I searched for the possible solution on the (http://www.r-inla.org) website. I used the command from the download and install tab on this website. For R 4.4, the INLA version installed from that command was 24.06.2. I run library(INLA) and it worked.
install.packages(“INLA”,repos=c(getOption(“repos”),INLA=”https://inla.r-inla-download.org/R/stable”), dep=TRUE)
If you have any issues like me, you can try with the command I copied from INLA website. Cheers!
-
2024-07-26 at 7:05 pm #45017
Chawarat Rotejanaprasert
KeymasterThank you for your comment, Soe Htike. You’ve raised a good point regarding the R version affecting the installation and functionality of INLA. I might have used a different R version when I prepared the materials, which could explain why I didn’t encounter this issue.
For those experiencing similar issues, the command provided on the INLA website can be very helpful. Soe Htike, your shared command for installing INLA for R is also beneficial for classmates!
-
2024-07-28 at 4:41 pm #45046
Pyae Thu Tun
ParticipantThank you, Ko Soe Htike
I also got stuck at that error and it took me some time to solve the issue.
The following are the versions for which I was okay with the code you provided.install.packages(“INLA”, repos = c(getOption(“repos”), INLA = “https://inla.r-inla-download.org/R/stable”), dep = TRUE)
It was also learned that in posting the above code, the webpage changed some content, and the display is not exactly as we posted.
Instead of the phrase
R/stable”
you will see like this
R/stable & # 8221 ;
So please take care of this when copying the code.R : 4.4.1
R Studio : 2024.04.02
R INLA : 24.06.27
R tools : 4.4
Maptools : 1.1-8.tar.gz -
2024-07-28 at 4:50 pm #45047
Nichcha Subdee
ParticipantI also had the same issue while trying to install the INLA package in RStudio, and I checked the course forum, thinking that someone else might have encountered the same problem as me. I used your suggestion, and it worked. Thanks a lot, Soe, you are my lifesaver!
-
-
AuthorPosts
You must be logged in to reply to this topic. Login here