Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install old package using install.packages [duplicate]

Tags:

r

I get

package ‘rJava’ is not available (for R version 2.15.0) 
Warning: unable to access index for repository http://cran.stat.ucla.edu/bin/macosx/leopard/contrib/2.15

when using install.packages() if the repository does not have a version of the given package for my version of R, 2.15.0--the latest Mac binary. Is there a way to get R to check in for older versions, e.g. rJava for R 2.14?

I know that I could download the tar.gz file and then use R CMD INSTALL in terminal, but I was wondering if there was a way to do this using install.packages(). Thank you.

like image 535
artdv Avatar asked Nov 14 '22 03:11

artdv


1 Answers

Try a different CRAN mirror repository (e.g. install.packages("rJava", repos = "http://cran.us.r-project.org/"), or simply try installing again with the UCLA repository. The CRAN mirror monitor report suggests there has been some sporadic downtime at the UCLA mirror recently. An Rjava binary for R 2.15.0 should be available. I can access it directly on the UCLA mirror at http://cran.stat.ucla.edu/bin/macosx/leopard/contrib/2.15/rJava_0.9-3.tgz .

like image 65
jthetzel Avatar answered Jan 08 '23 20:01

jthetzel