[R] update R packages in local repos
P Ehlers
ehlers at math.ucalgary.ca
Wed Nov 16 23:50:37 CET 2005
This should work:
update.packages(ask = "graphics", repos = NULL,
contriburl = "file:///g:/myFolder/myRepository"))
-peter
Muhammad Subianto wrote:
> I try to update R packages via my local repository.
> I put all R packages in g:/myFolder/myRepository, I do like
>
>
>>library(tools)
>>write_PACKAGES("g:/myFolder/myRepository")
>>options(repos=c(LocalR="file://g:/myFolder/myRepository"))
>>getOption("repos")
>
> LocalR
> "file://g:/myFolder/myRepository"
>
>>update.packages(ask = "graphics")
>
> Error in gzfile(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open compressed file
> ':/myFolder/myRepository/bin/windows/contrib/2.2/PACKAGES'
>
>>?update.packages
>
>
> It produces these file in g:/myFolder/myRepository
> PACKAGES
> PACKAGES.gz
>
> Could I make this folder (bin/windows/contrib/2.2/)? Why?
>
> Regards, Muhammad Subianto
>
>
>
>>version
>
> _
> platform i386-pc-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> status
> major 2
> minor 2.0
> year 2005
> month 10
> day 06
> svn rev 35749
> language R
>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
--
Peter Ehlers
Department of Mathematics and Statistics
University of Calgary, 2500 University Dr. NW
More information about the R-help
mailing list