Hello all, I'm trying to install the local package under window system. Two ways I've tried: 1. using the menu"packages" "install package(s) from local zip files...". My .zip file is "mclust.zip". But it shows Errors which are: "Error in gzfile(file,"r"): unable to open connection In addition: Warning messages: 1.error -1 in extracting from zip file 2.cannot open compressed file 'mclust/DESCRIPTION' 2. using function "install.packages". the command I use is install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program Files\R\rw2011\library") But error is "object "mclust.zip" not found". Could you please help me how I can install the local packages? Thanks a lot!
Where did you get "mclust.zip"? CRAN shows "mclust_2.1-11.zip". Why not just let R install mclust directly from the CRAN mirror at SFU? Use the menu: Packages > Install package(s). As to your install.packages(), you need forward slashes, contriburl=, and you probably want a different destdir (or just leave the default NULL). Peter Ehlers nlei at sfu.ca wrote:> Hello all, > > I'm trying to install the local package under window system. Two ways I've > tried: > > 1. using the menu"packages" "install package(s) from local zip files...". > > My .zip file is "mclust.zip". But it shows Errors which are: > > "Error in gzfile(file,"r"): unable to open connection > In addition: Warning messages: > 1.error -1 in extracting from zip file > 2.cannot open compressed file 'mclust/DESCRIPTION' > > 2. using function "install.packages". > > the command I use is > > install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff > from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program > Files\R\rw2011\library") > > But error is "object "mclust.zip" not found". > > Could you please help me how I can install the local packages? > > Thanks a lot! > > ______________________________________________ > 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
Take a look at: R for Windows FAQ http://cran.us.r-project.org/bin/windows/base/rw-FAQ.html nlei at sfu.ca wrote:> Hello all, > > I'm trying to install the local package under window system. Two ways I've > tried: > > 1. using the menu"packages" "install package(s) from local zip files...". > > My .zip file is "mclust.zip". But it shows Errors which are: > > "Error in gzfile(file,"r"): unable to open connection > In addition: Warning messages: > 1.error -1 in extracting from zip file > 2.cannot open compressed file 'mclust/DESCRIPTION' > > 2. using function "install.packages". > > the command I use is > > install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff > from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program > Files\R\rw2011\library") > > But error is "object "mclust.zip" not found". > > Could you please help me how I can install the local packages? > > Thanks a lot! > > ______________________________________________ > 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-- U.M.A. http://sophie.fata.unam.mx/
1. My best guess, and it is only a guess, is that the package wasn't built properly. That's assuming that when you used the menu, you navigated to the zip file. 2. Please review the documentation for the install.packages() function. When repos is NULL, your first argument is supposed to be a character vector of one or more file paths to the zip files. The second argument is not normally needed. Also, in this case, you should not use destdir. It's a temporary holding place used during the installation process. -Don At 12:33 PM -0800 3/22/06, nlei at sfu.ca wrote:>Hello all, > >I'm trying to install the local package under window system. Two ways I've >tried: > >1. using the menu"packages" "install package(s) from local zip files...". > > My .zip file is "mclust.zip". But it shows Errors which are: > > "Error in gzfile(file,"r"): unable to open connection > In addition: Warning messages: > 1.error -1 in extracting from zip file > 2.cannot open compressed file 'mclust/DESCRIPTION' > >2. using function "install.packages". > > the command I use is > > install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff > from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program > Files\R\rw2011\library") > > But error is "object "mclust.zip" not found". > >Could you please help me how I can install the local packages? > >Thanks a lot! > >______________________________________________ >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
1.: Did you try to extract the zip file manually? It seem that something is wrong with the zip file, not the procedure. Try downloading (compiling) it again. 2.: You should not use "\" in your paths, you should either "\\" of "/" instead. Best, Ales Ziberna nlei at sfu.ca pravi:> Hello all, > > I'm trying to install the local package under window system. Two ways I've > tried: > > 1. using the menu"packages" "install package(s) from local zip files...". > > My .zip file is "mclust.zip". But it shows Errors which are: > > "Error in gzfile(file,"r"): unable to open connection > In addition: Warning messages: > 1.error -1 in extracting from zip file > 2.cannot open compressed file 'mclust/DESCRIPTION' > > 2. using function "install.packages". > > the command I use is > > install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff > from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program > Files\R\rw2011\library") > > But error is "object "mclust.zip" not found". > > Could you please help me how I can install the local packages? > > Thanks a lot! > > ______________________________________________ > 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 > >
nlei at sfu.ca wrote:> Hello all, > > I'm trying to install the local package under window system. Two ways I've > tried: > > 1. using the menu"packages" "install package(s) from local zip files...". > > My .zip file is "mclust.zip". But it shows Errors which are: > > "Error in gzfile(file,"r"): unable to open connection > In addition: Warning messages: > 1.error -1 in extracting from zip file > 2.cannot open compressed file 'mclust/DESCRIPTION'Probably you got the wrong version of mclust. (you have not told version of R, version of mclust nor where you got mclust from). Currently, CRAN has mclust_2.1-11.zip in its binary section for R-2.2.x for Windows. Hence simply type install.packages("mclust") with a running internet connection or download the recent version from CRAN. Uwe Ligges> 2. using function "install.packages". > > the command I use is > > install.packages(mclust.zip,"D:\sfu\BC project\clustering project\stuff > from Jeffrey\flowCytometryClustering",repos=NULL,destdir="C:\Program > Files\R\rw2011\library") > > But error is "object "mclust.zip" not found". > > Could you please help me how I can install the local packages? > > Thanks a lot! > > ______________________________________________ > 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