Trouble installing an R package using R CMD install -


i ran following command after running r cmd build pkg , r cmd check pkg , completed without errors.

r cmd install -t /home/wdkrnls/r/x86_64-unknown-linux-gnu-library/3.1 pkg_0.1.0.tar.gz

however, still can't use via library(pkg) r. looking in library directory, see tarball, no pkg directory. when try , untar , load in r, error:

error in library(e2pa) : 'e2pa' not valid installed package

alternatively, when try install

r cmd install -l /home/wdkrnls/r/x86_64-unknown-linux-gnu-library/3.1 pkg_0.1.0.tar.gz

it tells me -l invalid option.

another failed possibility:

r cmd install -t /home/wdkrnls/r/x86_64-unknown-linux-gnu-library/3.1/pkg pkg_0.1.0.tar.gz install: accessing `/home/wdkrnls/r/x86_64-unknown-linux-gnu-library/3.1/pkg': no such file or directory

what right way install package personal library in r?

unix commands case-sensitive and

 r cmd install .... 

as typed invokes different /usr/bin/install r-internal script install mandated form

 r cmd install ... 

uses. see relevant docs -- uppercase.

once have correct script, -l ... recognised:

edd@max:~$ r cmd install -l /tmp/demo git/drat_0.0.2.4.tar.gz  * installing *source* package ‘drat’ ... ** r ** inst ** preparing package lazy loading ** *** installing indices ** building package indices ** testing if installed package can loaded * done (drat) edd@max:~$  

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -