Can I specify where the sources downloaded to build R packages are going -
i know how specify packages install via install.packages
or r cmd
going. when install within r
the downloaded source packages in ‘/tmp/rtmpxtilp5/downloaded_packages’
can setup environment or go want go ?
i use script install.r
included example in littler package (which available binary several linux distrubtions including debian , ubuntu). side-effect, leaves packages in /tmp/download_packages
:
edd@max:~$ install.r digest trying url 'http://cran.rstudio.com/src/contrib/digest_0.6.8.tar.gz' content type 'application/x-gzip' length 97985 bytes (95 kb) ================================================== downloaded 95 kb * installing *source* package ‘digest’ ... ** package ‘digest’ unpacked , md5 sums checked ** libs gcc -i/usr/share/r/include -dndebug [...] gcc -i/usr/share/r/include -dndebug [...] [...] gcc -shared -l/usr/lib/r/lib [...] installing /usr/local/lib/r/site-library/digest/libs ** r ** inst ** preparing package lazy loading ** *** installing indices ** building package indices ** testing if installed package can loaded * done (digest) downloaded source packages in ‘/tmp/downloaded_packages’ edd@max:~$
as not delete (as done default r session) script copy them other directory.
Comments
Post a Comment