Skip to content
Prev 82824 / 398503 Next

update from tar.gz in local directory on Unix/Solaris

Hi list,

I have not been successful in finding out from the available 
documentation how under Unix/Solaris to update a packages which I 
downloaded from the net as the original *.tar.gz and stored in a local 
file, say

(1) home/woodstock/hoffmacw/R/Sources/pack.tar.gz

A lot of installed libraries are residing in

(2) home/woodstock/hoffmacw/R/library/

but it is unclear to me, how to proceed, since in "Usage"

update.packages(lib.loc = NULL, repos = CRAN,

it says

"lib.loc 	character vector describing the location of R library trees to 
search through (and update packages therein)."

CRAN packages are residing in

(3) usr/local/lib/R/library/

How should I state my wish for "pack" to reside in (3) which I cannot 
manipulate directly (I am not an administrator).

Is

 > 
install.packages("/home/woodstock/hoffmacw/R/Sources/pack.tar.gz",repos=NULL)

correct?

Thanks for pointers and help
Christian