Hi, I am having trouble installing a previous version of a package, and multiple version of the package in R 2.12 or 2.15. I have download the tar.gz packages from the CRAN archive, and created an folder holding all the files. install.packages("changepoint_0.3.tar.gz", lib="~/Rtools/dir/of/pkgs/", repos=NULL, dependencies=FALSE, contriburl="~/Rtools/dir/of/pkgs/changepoint_0.3.tar.gz", installWithVers= TRUE) I have received several different errors, depending on which version of R I am using Version 2.12: warning: unable to access index for repository 'lib = "~/Documents/Rtools/dir/of/pkgs/"' is not writable Thanks for any thought. Cheers -- View this message in context: http://r.789695.n4.nabble.com/Failed-installWithVers-from-local-tar-gz-tp4644937.html Sent from the R help mailing list archive at Nabble.com.
On Oct 3, 2012, at 12:42 PM, kkarr wrote:> Hi, > I am having trouble installing a previous version of a package, and multiple > version of the package in R 2.12 or 2.15. I have download the tar.gz > packages from the CRAN archive, and created an folder holding all the files. > > install.packages("changepoint_0.3.tar.gz", > lib="~/Rtools/dir/of/pkgs/", > repos=NULL, > dependencies=FALSE, > contriburl="~/Rtools/dir/of/pkgs/changepoint_0.3.tar.gz", > installWithVers= TRUE)The tilde in the path makes me think this is a Mac OS question, and if so should have been explicitly stated, but the warning seems strange. Do you actually have a copy of "changepoint_0.3.tar.gz" in that location? What does this return: list.files( path = "~/Rtools/dir/of/pkgs/") You should also remember that type="mac.binary" is the default for install.packages on a Mac (if that is what we are dealing with) and that you would need type ="source" if installing on older versions of R. There is a binary version of pkg:changepoint at CRAN. S why not: install.packages("changepoint") and just let the magic take hold? -- David.> > > I have received several different errors, depending on which version of R I > am using > Version 2.12: > warning: unable to access index for repository > 'lib = "~/Documents/Rtools/dir/of/pkgs/"' is not writable > > > Thanks for any thought. > Cheers > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Failed-installWithVers-from-local-tar-gz-tp4644937.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > 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.David Winsemius, MD Alameda, CA, USA
On 03/10/2012 20:42, kkarr wrote:> Hi, > I am having trouble installing a previous version of a package, and multiple > version of the package in R 2.12 or 2.15. I have download the tar.gz > packages from the CRAN archive, and created an folder holding all the files. > > install.packages("changepoint_0.3.tar.gz", > lib="~/Rtools/dir/of/pkgs/", > repos=NULL, > dependencies=FALSE, > contriburl="~/Rtools/dir/of/pkgs/changepoint_0.3.tar.gz", > installWithVers= TRUE)installWithVers was made obsolete years ago. And you really do not want to install to the directory containing the tarballs.> > I have received several different errors, depending on which version of R I > am using > Version 2.12:This list does not support ancient versions of R (and as the posting guide says, there was no '2.12'). Please update as you were asked to do before posting.> warning: unable to access index for repository > 'lib = "~/Documents/Rtools/dir/of/pkgs/"' is not writableWhatever instructions you are following are misleading you. Use the official manuals instead.> > > Thanks for any thought. > Cheers> ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.htmlPLEASE do. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Possibly Parallel Threads
- more problems when using "installWithVers"
- Does the "installWithVers=TRUE" setting for the install.packages/update.packages flag updates?
- Error Downloading Matrix Package
- local source packages install from within R session - cross-platform
- MacOS X: update.packages(type="mac.binary") fails (PR#7831)