I recently upgraded to R 2.15.1 and am having trouble installing packages from the command line.
I tried using:
R --arch x86_64 CMD INSTALL package_1.0.tar.gz
But R tries to install the i386 version - and then that requires a 32 bit version of a dependent package that I do not have installed. However the 64 bit version of the package is available - yet, the entire install process fails.
I would've thought that specifying the architecture would prevent R from trying to install a 32 bit version. Am I missing something obvious? (This was not an issue on 2.14)
To install a specific version of a package, we need to install a package called “remotes” and then load it from the library. Afterwards we can use install_version() by specifying the package name and version needed as shown below.
It is good to have both versions of R because sometimes the 32-bit version is faster to run, but it is limited to 3Gb of RAM. The 64-bit version is not limited and can access as much RAM as your computer has.
To install any package from CRAN, you use install. packages() . You only need to install packages the first time you use R (or after updating to a new version). **R Tip:** You can just type this into the command line of R to install each package.
What OS?
On my computer, R CMD INSTALL --help
suggests the --no-multiarch
flag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With