Hi, I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and trying to install some packages using GUI Packages & Data/Package Installer interface... Every time I get: trying URL 'http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/contrib/2.4/neural_1.4.1.tgz' Content type 'application/x-tar' length 18920 bytes opened URL =================================================downloaded 18Kb Error in gzfile(file, "r") : unable to open connection In addition: Warning message: cannot open compressed file 'neural/DESCRIPTION'>What am I doing wrong? Any help will be much appreciated. N?zhet Dalfes Istanbul Tech. Univ.
well, i don't use RGui, but trying: install.packages("neural", type="source") ## from the R command line i could not reproduce the error (which may be a problem with the copy on the mirror you're using)... b On Jan 23, 2007, at 3:09 PM, N?zhet Dalfes wrote:> Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package > Installer > interface... > > Every time I get: > > trying URL > 'http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/ > contrib/2.4/neural_1.4.1.tgz' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' >> > > What am I doing wrong? > > Any help will be much appreciated. > > N?zhet Dalfes > > Istanbul Tech. Univ. > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code.
Here's my guess - you are probably missing some programs necessary to build the packages. First, make sure you install Xcode from either the Apple website or the Tiger disc (good time to install X11 if you don't have it too). Then be sure to check the check box in the apple package gui that downloads and install dependencies. Try opening terminal and typing 'which gcc' If it's not there, I believe the above should fix everything! (but still try the above if it is there...) best wishes, Vince On 1/23/07, Nüzhet Dalfes <dalfes@itu.edu.tr> wrote:> > Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package > Installer > interface... > > Every time I get: > > trying URL > ' > http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/contrib/2.4/neural_1.4.1.tgz > ' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' > > > > What am I doing wrong? > > Any help will be much appreciated. > > Nüzhet Dalfes > > Istanbul Tech. Univ. > > > ______________________________________________ > R-help@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 > and provide commented, minimal, self-contained, reproducible code. > > >-- Vince Buffalo "The greatest challenge to any thinker is stating the problem in a way that will allow a solution." -Bertrand Russell [[alternative HTML version deleted]]
2007/1/23, Nüzhet Dalfes <dalfes@itu.edu.tr>:> > Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package > Installer > interface... > > Every time I get: > > trying URL > ' > http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/contrib/2.4/neural_1.4.1.tgz > ' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' > > > > What am I doing wrong? > > Any help will be much appreciated. > > Nüzhet Dalfes > > Istanbul Tech. Univ. > > > ______________________________________________ > R-help@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 > and provide commented, minimal, self-contained, reproducible code. > > >Dear Mr. Dalfes, I have same opinion with Benilton. I think that you should use the command lines mentioned by him to install packages exclusively. Beside, i don't know the Mac OS X but there may be some problem about your security constraints of your system. -- Ýbrahim Mutlay Ankara, Turkey. [[alternative HTML version deleted]]
why not just type in console: install.packages("neural") and see what happens. On 1/23/07, N?zhet Dalfes <dalfes at itu.edu.tr> wrote:> Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package Installer > interface... > > Every time I get: > > trying URL > 'http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/contrib/2.4/neural_1.4.1.tgz' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' > > > > What am I doing wrong? > > Any help will be much appreciated. > > N?zhet Dalfes > > Istanbul Tech. Univ. > > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code. > > >-- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
On 24/01/2007, at 7:09 AM, N?zhet Dalfes wrote:> Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package > Installer > interface... > > Every time I get: > > trying URL > 'http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/ > contrib/2.4/neural_1.4.1.tgz' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' >> > > What am I doing wrong? > > Any help will be much appreciated. > > N?zhet Dalfes > > Istanbul Tech. Univ.This looks like a permissions problem, possibly your account doesn't have Administrator privileges. Try selecting "At User level" for the Install Location in the install packages dialog. There is a special mailling list for mac problems, at https:// stat.ethz.ch/mailman/listinfo/r-sig-mac which may provide a better answer. Ken
I have the exact same problem as you had when I customerized some package: the way I go around this is using install.packages("~/Documents/projects/R_customerized_packages/supclust_1.0-5.tar.gz", repos=NULL, type="source") in which supclust_... is built from R CMD build supclust and in your case, you just need to download the package if you insist on using downloaded package. HTH, Weiwei On 1/23/07, N?zhet Dalfes <dalfes at itu.edu.tr> wrote:> Hi, > > I am a total newbie to R. I am using R (2.4.1) on Mac OS X 10.4.8 and > trying to install some packages using GUI Packages & Data/Package Installer > interface... > > Every time I get: > > trying URL > 'http://umfragen.sowi.uni-mainz.de/CRAN/bin/macosx/universal/contrib/2.4/neural_1.4.1.tgz' > Content type 'application/x-tar' length 18920 bytes > opened URL > =================================================> downloaded 18Kb > > Error in gzfile(file, "r") : unable to open connection > In addition: Warning message: > cannot open compressed file 'neural/DESCRIPTION' > > > > What am I doing wrong? > > Any help will be much appreciated. > > N?zhet Dalfes > > Istanbul Tech. Univ. > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code. > >-- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III