error in INLA install

1,090 views
Skip to first unread message

J. Alex Baecher

unread,
Jun 25, 2021, 12:31:12 PM6/25/21
to R-inla discussion group
Hello all, 

I've recently updated R/Rstudio (R v.4.1.0, Rstudio v.1.4.1717), and I'm getting an error when attempting to install INLA through Rstudio:
> install.packages("INLA", repos=c(getOption("repos"), INLA="inla.r-inla-download.org/R/stable"), dep=TRUE) 
Installing package into ‘C:/Users/jbaec/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
installing the source package ‘INLA’

 length 169857085 bytes (162.0 MB)
downloaded 21.6 MB

Error in download.file(url, destfile, method, mode = "wb", ...) : 

So, I also tried the testing version: 
> install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/testing"), dep=TRUE)
Installing package into ‘C:/Users/jbaec/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
 length 96560139 bytes (92.1 MB)
downloaded 18.0 MB

Error in download.file(url, destfile, method, mode = "wb", ...) : 

Could anyone advise? 

Best, 

-Alex B. 

Finn Lindgren

unread,
Jun 25, 2021, 12:34:23 PM6/25/21
to J. Alex Baecher, R-inla discussion group
Hi,

this looks very much like the usual R download timeout setting, although usually it specifically mentions the timeout issue. Since it downloaded 18 out of 92 MB, it clearly found some file to download, so it may be that issue. Try changing the timeout setting in R with
  options(timeout=600)
to increase the timeout from the default 60 seconds to 10 minutes.

Finn

--
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 on the web, visit https://groups.google.com/d/msgid/r-inla-discussion-group/4321b34b-4c5e-408d-b454-dc57e44e5dafn%40googlegroups.com.


--
Finn Lindgren
email: finn.l...@gmail.com

J. Alex Baecher

unread,
Jun 25, 2021, 1:15:48 PM6/25/21
to R-inla discussion group
Dr. Lindgren, 

Thank you for getting back to me so quickly. Clearly my issue was related to the timeout time--I appreciate your insight. Although, after setting the timeout = 10000, the download still stalled at about 50%... Rather than continuing to increase the timeout time,  I manually downloaded the stable version from https://inla.r-inla-download.org/ and extracted it into my R library, which appears to be working just fine (not sure if this will hold up). 

All the best, 

-Alex.

Finn Lindgren

unread,
Jun 25, 2021, 1:19:55 PM6/25/21
to J. Alex Baecher, R-inla discussion group
Hi,

the proper way to install a manually downloaded package is still using install.packages. Just set the repos argument to NULL to help it understand you're installing from a local file; something like
install.packages("thelocalfilename", repos = NULL)
(although I'm not sure about installing the dependencies in that case).

Finn

jbae...@gmail.com

unread,
Jun 25, 2021, 1:25:35 PM6/25/21
to Finn Lindgren, R-inla discussion group

Dr. Lingren,

 

Thank you for that information! Using your instructions, I was able to properly install from the manually downloaded file.

 

Best,

 

-Alex.

Helpdesk

unread,
Jun 25, 2021, 2:54:24 PM6/25/21
to J. Alex Baecher, R-inla discussion group

I guess this a timeout issue, as R by default have 60 seconds. just set
it higher, like

options(timeout=300)
> --
> 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 on the web, visit
> https://groups.google.com/d/msgid/r-inla-discussion-group/4321b34b-4c5e-408d-b454-dc57e44e5dafn%40googlegroups.com
> .

--
Håvard Rue
he...@r-inla.org

Reply all
Reply to author
Forward
0 new messages