[R] How to install packages without internet

FERNANDO MANSITO CABALLERO fernando.mansito at gmail.com
Fri Oct 9 19:09:31 CEST 2015


Thank you very much David. I will also follow your advice. I think polynom
was finally successfully installed  from source without mentioning it in
 the call under type..
Fernando

On Thu, Oct 8, 2015 at 7:53 PM, David Winsemius <dwinsemius at comcast.net>
wrote:

>
> On Oct 8, 2015, at 7:29 AM, Sarah Goslee wrote:
>
> > Don't uncompress the package first.
> >
> > Either from within R:
> >
> > install.packages("/path/to/pgk.tar.gz", repos=NULL)
>
> I think at least one OS will require that you also include type="source"
> and I would advise including dependencies=TRUE.
>
>
> > 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..
>
> Generally one does not need to unzip source versions of packages unless
> you want to look at the contents separately. With Windoze and Macs you need
> to specify type="source" [unless getOption("pkgType") is set to that value]
> and may need to have the appropriate system tools. You did not show your
> exact call to install.packages().
>
> >>
> >> 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".
>
> The problem description doesn't allow a definite answer. If problems
> persist, then you should post more complete descriptions of your methods,
> your OS and R versions.
>
> >>
> >> What am I doing wrong?
> >>
> >
>
> --
>
> David Winsemius
> Alameda, CA, USA
>
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list