This question already has answers here:
Installing older version of R package
(8 answers)
Closed 6 years ago.
Quick question, I'm using an older version of R Studio - R 3.2.3 - and some newer packages require a newer version. Specifically, I want the wordcloud package, so is there a way to install an older version that is compatible with my version of R? I couldn't find a simple straight-to-the-point answer online and I'm on a bit of a time crunch since I need to create some wordclouds.
I'm using a Windows machine.
There are two ways you can install older packages in R.
Using devtools
Use the following code, updating the 2.2 with the version of wordcloud that you require.
require(devtools)
install_version("wordcloud", version = "2.2", repos = "http://cran.us.r-project.org")
Installing older packages from source
Equally you can install older packages directly from a URL as below.
wordcloudURL <- "https://cran.r-project.org/src/contrib/Archive/wordcloud/wordcloud_2.2.tar.gz"
install.packages(wordcloudURL, repos=NULL, type="source")
The URLs for older versions of wordcloud are available here.
Related
This question already has answers here:
Downgrade R version (no issues with Bioconductor installation)
(2 answers)
Closed 3 years ago.
I updated my version of R not realizing that several packages are not compatible. I'd like to go back to version 3.5.2 (for Mac), but I can't find it anywhere. Anyone know where to find old versions?
I was able to get version 3.5.2 by modifying the link to download the present version (https://cran.r-project.org/bin/macosx/R-3.6.1.pkg), with the version number I'm interested in (https://cran.r-project.org/bin/macosx/R-3.5.1.pkg). This started an automatic download.
You can find and download all released versions of R for Mac here
Installing older version of R package shows how to install a different version of an R package.
Can that be automated so I can have it install the newest (older) version that is compatible with my R installation?
In my case I need it for Rcpp, but a general solution working for any package would be preferred.
This question already has answers here:
Installing older version of R package
(8 answers)
Closed 7 years ago.
I am trying to install the R package bigrf using the following command:
install.packages('bigrf')
However, I receive this error:
Warning in install.packages: package 'bigrf' is not available (for R version 3.0.2).
I understand that the package was not built for R version 3.0.2, but is it not possible for me to install it regardless with the understanding that it might not have complete forward compatibility?
The safest thing to do would be to download the last version that the package was built for (link) and run the code on that version.
The easiest way to rebuild a package from source is using R-Studio.
They have a good walkthrough. You will need to use the devtools package as well.
Can anyone tell me how can I do to install Rmetric package on a 3.0.0 version?
install.packages("Rmetrics", repos = "http://cran.r-project.org/web/packages/", dependencies = TRUE)
package 'Rmetrics' is not available (for R version 3.0.0)
I am using a putty console
The Rmetrics meta-package was retired many, many years ago. Just install whichever components (say, fOptions) you want directly.
This question already has answers here:
Installing older version of R package
(8 answers)
Closed 7 years ago.
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.
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 .
You could install the old version of R, which has the compatible version of the package. If rJava is only available for 2.14, I'd just run that version.