[R] How to install packages without internet

Sarah Goslee sarah.goslee at gmail.com
Thu Oct 8 16:29:31 CEST 2015


Don't uncompress the package first.

Either from within R:

install.packages("/path/to/pgk.tar.gz", repos=NULL)

or at command line

R CMD INSTALL /path/to/pgk.tar.gz

In either case, pay attention to any messages that R returns

Sarah

On Thu, Oct 8, 2015 at 7:12 AM, FERNANDO MANSITO CABALLERO
<fernando.mansito at gmail.com> wrote:
> Dear Madam/Sir,
>
> I am trying to understand how to install packages without internet and I
> have come to a dead end.
>
> I choose polynom (Venables & Ripley) which I first successfully installed
> on a computer with internet. I found that the installed package comprises a
> void "polynom" folder and a "polynom_1.3-8.tar" folder which only contains
> a zipped container with the same name.
>
> I then donloaded the package successfully using download.packages(). I
> unzipped the .tar.gz downloaded package then successfully installed the
> unzipped polynom package using its path and repos=NULL in
> install.packages() on a computer without internet..
>
> However, when I wrote "library(polynom)" on the computer without internet,
> R3.2.2 answers with an error "polynom is not a valid installed package".
>
> What am I doing wrong?
>
> Yours truly
> Fernando Mansito
>
-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list