installation of R-inla package

1,883 views
Skip to first unread message

Mtani Njegere

unread,
Dec 20, 2020, 3:36:07 AM12/20/20
to R-inla discussion group
Hi everyone.
I want to install inla package and I am using R version 4.0.3. I'm using this path "install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)"
However, I keep getting the following error message:

Error in download.file(url, destfile, method, mode = "wb", ...) : 
Warning in install.packages :
  download of package ‘rgdal’ failed
installing the source package ‘INLA’

Content type 'application/x-gzip' length 335248166 bytes (319.7 MB)
===
downloaded 21.3 MB

Warning in install.packages :
  downloaded length 22312487 != reported length 335248166
Warning in install.packages :
Error in download.file(url, destfile, method, mode = "wb", ...) : 
Warning in install.packages :
  download of package ‘INLA’ failed.

Anyone who can help me to solve this, please

INLA help

unread,
Dec 20, 2020, 4:00:14 AM12/20/20
to R-inla discussion group, Mtani Njegere
Install the testing version instead

If other required packages have issues, install them manually first. 

-- 
Håvard Rue 
Helpdesk 
--
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/6609c813-06e9-4ff1-b3f5-43a11b741deen%40googlegroups.com.

Mtani Njegere

unread,
Dec 20, 2020, 4:16:52 AM12/20/20
to R-inla discussion group
Thanks for a quick response. I have tried even the testing version several times and I am succumbing the same error. In addition I am using Mac. Your assistance is highly appreciated.

Finn Lindgren

unread,
Dec 20, 2020, 5:26:18 AM12/20/20
to R-inla discussion group
Hi Mtani,

The error you get is for the rgdal package, not INLA.
I can see the rgdal_1.5-18.tgz on the directory of the CRAN mirror you’re using, so can’t really tell what the problem is.
Try
install.package(“rgdal”)
to perhaps get some more insight.

Finn

On 20 Dec 2020, at 09:16, Mtani Njegere <njeg...@gmail.com> wrote:

Thanks for a quick response. I have tried even the testing version several times and I am succumbing the same error. In addition I am using Mac. Your assistance is highly appreciated.

Mtani Njegere

unread,
Dec 20, 2020, 7:51:33 AM12/20/20
to Finn Lindgren, R-inla discussion group
Thanks Finn. 
It is very unfortunate and this is what I noted earlier before. Even installation of rgdal fails and I am stack for weeks now. I thought someone may be aware why the rgdal installation fails. 
I am still looking forward to getting assistance from anyone.

Helpdesk

unread,
Dec 20, 2020, 7:52:48 AM12/20/20
to Mtani Njegere, Finn Lindgren, R-inla discussion group

Mtani Njegere

unread,
Dec 20, 2020, 7:56:35 AM12/20/20
to Helpdesk, Finn Lindgren, R-inla discussion group
I am running MacOs Catalina version 10.15.7

Helpdesk

unread,
Dec 20, 2020, 8:00:44 AM12/20/20
to Mtani Njegere, Finn Lindgren, R-inla discussion group
works well for me from the terminal. can you try that? run these two commands

 R --vanilla CMD INSTALL ./rgdal_1.5-18.tgz

Mtani Njegere

unread,
Dec 21, 2020, 5:07:18 AM12/21/20
to Helpdesk, Finn Lindgren, R-inla discussion group
Hi Finn,
May I come back and ask a quick one. When I run the first command, it looks like the rgdal downloads and needs to be manually installed, is it right?
Secondly, R--vannila CMD INSTALL./rgdal_1.5-18.tgz, do I run this in R software?

Finn Lindgren

unread,
Dec 21, 2020, 5:27:56 AM12/21/20
to R-inla discussion group
Hi,
That was Håvard posting the installation commands, but yes, the first one downloads the file, and the second installs it, both run in a system terminal.
(Mind the spelling details of the command)

Finn

On 21 Dec 2020, at 10:07, Mtani Njegere <njeg...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages