Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing only 64 bit packages via the R command line

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)

like image 749
rguha Avatar asked Jul 02 '12 16:07

rguha


People also ask

How do I load a specific version of an R package?

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.

Should I install both 32 and 64 bit R?

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.

Which command is used to install packages R?

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.


1 Answers

What OS?

On my computer, R CMD INSTALL --help suggests the --no-multiarch flag.

like image 165
Dirk Eddelbuettel Avatar answered Oct 01 '22 19:10

Dirk Eddelbuettel