When using install.packages() in R, does it uninstall the currently installed version of the package and install the latest version (even if the version number hasn't changed)?
Related
I am trying to install the newest version of the terra package, but I keep getting the following errors:
no DLL was created
ERROR: compilation failed for package 'terra'
* removing 'C:/Users/ruben/AppData/Local/R/win-library/4.2/terra'
* restoring previous 'C:/Users/ruben/AppData/Local/R/win-library/4.2/terra'
Warning in install.packages :
installation of package ‘terra’ had non-zero exit status
I don't know if this is my fault or if there is something not right with the package or compiler. Any help on this would be great.
To install the CRAN version from source, you need to install the system dependencies (on OSX and Linux) or, on windows, have the current version of Rtools installed.
On OSX and Windows, you can choose to not install from source. To get the latest released version you would have to wait a couple of days until CRAN has a compiled ("binary") version available for your R version and operating system.
Another way to use a recent version of "terra" on windows is to get the development version from the R-universe:
install.packages('terra', repos='https://rspatial.r-universe.dev')
For more info on installation go the terra github site
I need to install few packages that should be installed with remotes::install_github() like
"acidgenomics/basejump" or "satijalab/seurat".
During the installation, it need to upgrade few other packages version. The BiocManager::install program cannot find those versions and I had to install those dependencies packages version with:
R CMD INSTALL IRanges_2.20.2.tar.gz
Then other packages, that use the same packages stop working. like DESeq2,
I get the error:
Error: package or namespace load failed for ‘DESeq2’:
objects ‘rowSums’, ‘colSums’, ‘rowMeans’, ‘colMeans’ are not exported by 'namespace:S4Vectors'
I found few answers that say it happen (like url)
remotes::install_github() isn't picking up the correct Bioconductor
devel repos, whereas installing with BiocManager::install() does work
as expected.
we have the R 3.6.0 installed as a module and a lot of users uses the same R version. I need all packages to work for everyone.
How can I make all variety packages versions to work?
Finally, I install new version of R 3.6.3 with Bioconductor 3.10 and all the packages install right.
I'd like to install the latest version of R in RHEL 5 as I tried to install some library (plyr) but it complained a dependency could not be used with my installed version of R: package ‘Rcpp’ is not available (for R version 2.15.2)
2.15.2 is the latest precompiled R binary available for RHEL5 from epel. I guess they stopped updating it. Is compiling from source to get R 3.x my only solution here or there is some binary installer somewhere else? I much rather use something like yum since it take care of all the R dependency packages as well.
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 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.