for reason not able install packages in r (i have subsequently updated latest version of r , running windows 7). example, if type:
install.packages('beeswarm') installing package ‘d:/rlibs’ (as ‘lib’ unspecified) --- please select cran mirror use in session --- trying url 'http://www.stats.bris.ac.uk/r/bin/windows/contrib/3.0/beeswarm_0.1.5.zip' content type 'text/html' length unknown opened url downloaded 1859 bytes
error in read.dcf(file.path(pkgname, "description"), c("package", "type")) : cannot open connection in addition: warning messages: 1: in unzip(zipname, exdir = dest) : error 1 in extracting zip file 2: in read.dcf(file.path(pkgname, "description"), c("package", "type")) : cannot open compressed file 'beeswarm/description', probable reason 'no such file or directory'
i have read in windows 7 there can important restrictions on rights writing folders etc. i've gone lengths install r , library folders in non-default areas of computer, , allow myself rights folders, no avail. possibly of importance when type:
.libpaths() # [1] "d:/rlibs" # [2] "c:/users/l.halsey/documents/r/win-library/3.0" # [3] "c:/users/l.halsey/documents/documents/r-3.0.1/library" i have created several folders in attempt create 1 install libraries , set them recognised r using 'environment variables' start button. don't know how delete of them though - not sure if relevant overall problem of not being able install/update packages reason.
the error being reported inability open connection. in windows often firewall problem , in windows r faq. usual first attempt should run internet2.dll. console session can use:
setinternet2(true) (you correct in thinking not due library setup. error says nothing permissions.) don't think typing .libpaths should return character vector since on machine need type .libpaths() see that. if wanted reduce number of places libraries can use .libpaths function setting values. pick second , third of existing paths
.libpaths( .libpaths()[2:3] ) the inner call retrieves path vector , outer call sets reduced vector.
Comments
Post a Comment