INLA installation on Windows

15 views
Skip to first unread message

Jin Hyung Lee

unread,
Jul 23, 2025, 9:59:28 AMJul 23
to R-inla discussion group
I tried to install the INLA library automatically. My code ran successfully on my Mac but failed on Windows. Thank you

packages <- c(
  "INLA"
)
installed_packages <- packages %in% rownames(installed.packages())
if (any(installed_packages == FALSE)) {  install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)}
invisible(lapply(packages, library, character.only = TRUE))

and I got the error on my windows as follows


* 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/tmdgu/AppData/Local/R/win-library/4.3/INLA'
Warning in install.packages :
  installation of package ‘INLA’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\tmdgu\AppData\Local\Temp\Rtmpwt8fnT\downloaded_packages’
Error in FUN(X[[i]], ...) : there is no package called ‘INLA’ 

INLA help

unread,
Jul 23, 2025, 10:09:58 AMJul 23
to R-inla discussion group, Jin Hyung Lee
Can u upgrade R to version 4.5 and retry?

Haavard Rue
--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/r-inla-discussion-group/651f8fb3-1bab-4b35-999c-e7e1104c530bn%40googlegroups.com.

Jin Hyung Lee

unread,
Jul 23, 2025, 11:50:33 AMJul 23
to R-inla discussion group
Dear Dr.Rue

After uninstalling and reinstalling the latest R, it is working well on my Windows. Thank you!

2025년 7월 23일 수요일 오전 10시 9분 58초 UTC-4에 INLA help님이 작성:
Reply all
Reply to author
Forward
0 new messages