- This topic has 6 replies, 4 voices, and was last updated 2 weeks, 1 day ago by
Aye Thinzar Oo.
-
AuthorPosts
-
-
2025-08-01 at 3:58 pm #49860
Than Soe Oo
ParticipantI am experiencing an issue while trying to install the INLA package in RStudio. I checked the course forum to see if anyone else had encountered the same problem. I followed your suggestion, and it worked!
-
2025-08-01 at 6:11 pm #49876
Wannisa Wongkamchan
ParticipantI’m having trouble installing the INLA package, whether I’m using the R code from the Introduction to R-INLA Activities, friends comments in the Course Forum, or the website https://www.r-inla.org/download-install.
I’m still getting an error message:cp: unknown option — )
ERROR: installing binary package failedSo I asked ChatGPT and used this code to successfully install it on my Windows.
install.packages(“INLA”, repos = c(INLA = “https://inla.r-inla-download.org/R/stable”), type = “binary”)
I hope this INLA installed will be useful for course learning and class projects.
-
2025-08-03 at 7:02 pm #49910
Aung Thura Htoo
ParticipantI have faced similar issues when running the code. So, the issue mostly is some of the library used in the codes are archived. So, I need to install those packages from elsewhere. I think there are two or three packages that cannot be installed easily. Mostly I solved it by searching those packages in CRAN repositories and tried to install them. It worked for me.
-
2025-08-04 at 12:11 am #49916
Aye Thinzar Oo
ParticipantI had still trouble installing th INLA package, see the following error message.
* installing *binary* package ‘INLA’ …
Warning in system(paste(“cp -R .”, shQuote(instdir), “|| (“, TAR, “cd – .| (cd”, :
‘cp’ not found
ERROR: installing binary package failed
* removing ‘C:/Users/Administrator/AppData/Local/R/win-library/4.4/INLA’
Warning in install.packages :
installation of package ‘INLA’ had non-zero exit status
Trying from this link https://www.r-inla.org/download-install and I also try the Wannisa mention link, but can’t solve it on my window.
I am still trying to install INLA package.
Thanks.-
2025-08-04 at 11:26 am #49917
Wannisa Wongkamchan
ParticipantHi Thinzar, Have you updated your R program to the latest version? If not, try updating first.
-
2025-08-05 at 6:40 am #49925
Aung Thura Htoo
ParticipantHello Thinzar, these are the packages that I needed to install on top of the provided codes.
install.packages(“maptools”, repos = “https://packagemanager.posit.co/cran/2023-10-13”) (please verify the url again whether it is still there)
library(maptools)
install.packages(“fmesher”)
install.packages(“lattice”)
library(lattice)
After installing these packages, it worked for me. (I am not sure that it would work for you)
I loaded tidyverse in my workspace before, so I needed to clear my workspace again as tidyverse has some conflicts with lattice.
So, I think updating your program to latest version as suggested by Wannisa could be a great idea. Then, clear your workspace if you have any, and install and load the needed packages.
-
-
2025-08-09 at 2:11 pm #49956
Aye Thinzar Oo
ParticipantThank you for your guidance, Wannisa, and Aung. Firstly, I updated the R version. Then, I installed ‘fmesher’ and installed INLA with this link==> install.packages(“INLA”,repos = “https://inla.r-inla-download.org/R/stable”, dep = TRUE)
Now I am okay and started playing INLA and to complete week 1 assignment.
-
-
AuthorPosts
You must be logged in to reply to this topic. Login here