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.mans...@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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.