I'm using R 3.4.1 on Red Hat Enterprise Linux 6. I have version 3.0 of package asreml
installed under /tools/bioinfo/app/R-3.4.1/lib64/R/library
.
> library(asreml)
Loading required package: lattice
Checking for license <redacted>
> .libPaths()
[1] "/tools/bioinfo/app/R-3.4.1/lib64/R/library"
Version 4 of that package has now come out, but we would like to compare the results of version 3 with version 4. To that end, we would like to have version4 installed on our system as asreml4
. I have downloaded the *tar.gz file with the latest version, but if I do
R CMD INSTALL asreml_4.1.0.93.tar.gz
it installs it in the asreml
folder, overwriting the old version. That's not what I want.
I've also tried to install it in another place, rename the folder to asreml4
, and copy that folder to /tools/bioinfo/app/R-3.4.1/lib64/R/library
and then tried to load it, but then it loads the wrong version:
> library(asreml, lib.loc="/tools/bioinfo/app/R-3.4.1/lib64/R/library/asreml4")
> packageVersion("asreml")
[1] ‘3.0.1’
So, how do I install it in an asreml4
folder in such a way that I can call it with library(asreml4)
?