R 3.3

197 views
Skip to first unread message

s.v....@gmail.com

unread,
May 18, 2017, 7:25:05 PM5/18/17
to R-inla discussion group
Hi,
Sorry not a very interesting question, but, I am stuck at the moment with R 3.3.3. I work for a large bureaucracy and updating is beyond my power and may take awhile.
Anyway, I find INLA packages will only install for R 3.4.
I tried the older versions in the /stable directory but none of them worked.

Is there an older version somewhere that works on R 3.3 ? Or some hack to work around?
Thanks,
Scott
 

Thierry Onkelinx

unread,
May 19, 2017, 3:51:42 AM5/19/17
to s.v....@gmail.com, R-inla discussion group
Dear Scott,

You could try to install INLA from source. This might require some extra tools (on Windows).

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey

--
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-group+unsub...@googlegroups.com.
To post to this group, send email to r-inla-discussion-group@googlegroups.com.
Visit this group at https://groups.google.com/group/r-inla-discussion-group.
For more options, visit https://groups.google.com/d/optout.

Håvard Rue

unread,
May 19, 2017, 5:46:33 AM5/19/17
to s.v....@gmail.com, R-inla discussion group
if you go to

http://inla.r-inla-download.org/R/

and below, you'll find older packages. the 3.4 series didn't start
before in April (I think)...

let me know if this does not work out.

Best
H

--
Håvard Rue
Department of Mathematical Sciences
Norwegian University of Science and Technology
N-7491 Trondheim, Norway
Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue
Mobile: +47-9260-0021 Email: havar...@math.ntnu.no

R-INLA: www.r-inla.org

s.v....@gmail.com

unread,
May 19, 2017, 11:47:11 AM5/19/17
to R-inla discussion group, s.v....@gmail.com, hr...@r-inla.org
Thank you Havard for your suggestion. I have gone into the folders that appear to be versions ( 3.4/ , 3.3/ etc ) as far back as they go ( 3.0) and tried the oldest zip there. 
But I still get a message that INLA "is not available for R 3.3.3" when I try to install. 

For this reason I  wondered if there is a "switch" in the code that is inappropriate-- perhaps the 3.0 version doesn't really need 3.4 but something is telling it is does-- in a header or some part of a minor file. I don't know enough about what is really happening during install to know where this might be.

I do see that in this file,

is stated,

Package: INLA
Version: 0.0-1468872408
Depends: R (>= 2.10), sp, Matrix, splines
Suggests: mvtnorm, numDeriv, Rgraphviz, graph, fields, rgl, parallel,
        pixmap, splancs, orthopolynom, compiler, devtools, knitr,
        markdown, shiny
License: GPL (>= 2)



I am using R Studio (0.99.902) and R 3.3.3 on Windows.
I am required to download the package zip, then upload it to our remote system to install because the remote system has no internet access (or very limited-- can upload/download files and access CRAN mirror sites). So I am downloading the zip locally, and then uploading to a directory on the remote system, and installing. Here is the sequence. I am relatively new to this installing packages "by hand" so maybe I am just making a rookie mistake.

>install.packages("H:/Rpackages/INLA_0.0-1468872408.zip",lib="H:/Rpackages/lib")
 Warning in install.packages : 
   package `H:/Rpackages/INLA_0.0-1468872408.zip' is not available (for R version 3.3.3)
 
Warning message:
 In dir.create(configdir, recursive=TRUE) :
 '\\[path omitted]\R\connect\accounts' already exists
 
(I have omitted a long network path in the [path omitted] part. I do not want to put network addresses and usernames here.)

R thinks for a while longer and then returns, but subsequently
library(INLA) 
Error in library(INLA) :  there is no package called 'INLA'

or,

library(INLA, lib.loc="H:/Rpackages/lib")
 
Error in library(INLA, lib.loc="H:/Rpackages/lib") :  
  there is no package called 'INLA'

And, indeed the H:/Rpackages/lib is empty.

Any help or suggestions appreciated.
Thanks,
Scott

INLA help

unread,
May 19, 2017, 1:07:46 PM5/19/17
to s.v....@gmail.com, R-inla discussion group
On Fri, 2017-05-19 at 08:47 -0700, s.v....@gmail.com wrote:
> Thank you Havard for your suggestion. I have gone into the folders
> that appear to be versions ( 3.4/ , 3.3/ etc ) as far back as they go
> ( 3.0) and tried the oldest zip there. 
> But I still get a message that INLA "is not available for R 3.3.3"
> when I try to install. 
>
> For this reason I  wondered if there is a "switch" in the code that
> is inappropriate-- perhaps the 3.0 version doesn't really need 3.4
> but something is telling it is does-- in a header or some part of a
> minor file. I don't know enough about what is really happening during
> install to know where this might be.
>

I think you have to download the file, and then to, manually,

R CMD INSTALL INLA....


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

Finn Lindgren

unread,
May 19, 2017, 1:39:21 PM5/19/17
to s.v....@gmail.com, R-inla discussion group, hr...@r-inla.org
You may need to set install.packages(..., repos=NULL) in case it's the automatic detection of a local file name that fails. (And you also need to make sure that R can actually see and read the .zip file with the given path)

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 post to this group, send email to r-inla-disc...@googlegroups.com.

s.v....@gmail.com

unread,
Jun 6, 2017, 4:03:22 PM6/6/17
to R-inla discussion group, s.v....@gmail.com, hr...@r-inla.org
Update-- got this to work. It was  that the (...,repos=NULL)  was necessary as suggested by Finn. Adding this to the install.packages successfully installed one of the older packages. (I suspect the error message I received is a bit cryptic and does not truly mean INLA will only work on R 3.4; but rather, that it is not finding the file when trying the local install)
Thank you,
Scott
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion-group+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages