[R] Installing the Rstem package
Hello, I am trying to install the Rstem package, but I have problems. I am using Windows XP and the 2.8.1 version of R. I have read the "Add-on packages" chapter of the "R Installation and Administration" manual, and also have tried several things, which worked for other people on the mailing list having faced the same problem (http://tolstoy.newcastle.edu.au/R/help/06/03/22889.html). I paste below the things, which I have tried and the results. I don't understand what the message "installation of package 'Rstem' had non-zero exit status" mean, which I get on my last try below. Could anyone advise me what should I do? Thank you. p.s. I have successfully installed the lsa package, which depends on the Rstem package. ## First Try ## > chooseCRANmirror() > install.packages(c("Rstem", "lsa")) trying URL 'http://cran.at.r-project.org/bin/windows/contrib/2.8/lsa_0.61.zip' Content type 'application/zip' length 205671 bytes (200 Kb) opened URL downloaded 200 Kb package 'lsa' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Administrator\Local Settings\Temp\RtmpdBelSq\downloaded_packages updating HTML package descriptions Warning message: package ‘Rstem’ is not available ## Second Try > install.packages("Rstem", repos = "http://www.omegahat.org/R";) Warning: unable to access index for repository http://www.omegahat.org/R/bin/windows/contrib/2.8 Warning message: package ‘Rstem’ is not available ## Third Try ## > install.packages("Rstem", repos = "http://www.omegahat.org/Rstem/";) Warning: unable to access index for repository http://www.omegahat.org/Rstem/bin/windows/contrib/2.8 Warning message: package ‘Rstem’ is not available The Rstem package could be found here: http://www.omegahat.org/Rstem/ ## Fourth Try ## > install.packages("Rstem", repos = "http://www.omegahat.org/R";, type = > "source") trying URL 'http://www.omegahat.org/R/src/contrib/Rstem_0.3-1.tar.gz' Content type 'application/x-gzip' length 606408 bytes (592 Kb) opened URL downloaded 592 Kb tar (child): Cannot open archive /cygdrive/C\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RtmpdBelSq/downloaded_packages/Rstem_0.3-1.tar.gz: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors Error: cannot untar the package The downloaded packages are in C:\Documents and Settings\Administrator\Local Settings\Temp\RtmpdBelSq\downloaded_packages Warning message: In install.packages("Rstem", repos = "http://www.omegahat.org/R";, : installation of package 'Rstem' had non-zero exit status ## __ R-help@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.
Re: [R] Installing the Rstem package
Hello, thanks a lot for the replies. I've installed the binary for R-2.8.x available at: http://www.statistik.uni-dortmund.de/~ligges/Rstem_0.3-1.zip However, when I try using some of the functions, such as getStemLanguages() or wordStem(), I get: > getStemLanguages() Error: could not find function "getStemLanguages" or > words = c("sing", "singing", "singer") > wordStem(words, language = "english") Error: could not find function "wordStem" Why do I get this? Haven't I installed the package correctly? I've done this using the R Gui: "Packages" --> "Install package(s) from local zip files ...", have chosen the .zip file, which I've downloaded from the URL you sent me, and I got: > utils:::menuInstallLocal() package 'Rstem' successfully unpacked and MD5 sums checked updating HTML package descriptions Do I need to do something else? I receive the same results after installing (in this way) the the binary for R-2.7.x. Prof Brian Ripley wrote: > b) A few are available from CRAN extras (one of the default repositories on > Window), and I've added Rstem. I'm sorry, I didn't understand what you mean by "CRAN extras". I have googled and found this page with binaries checks for Windows, but there is no Rstem package there, and it is just a "check" (no files which I could download): http://cran.r-project.org/bin/windows/contrib/checkSummaryWin.html Regards On 3/5/09, Prof Brian Ripley wrote: > I don't understand the last message either: the build environment has > problems. > > a) There seem to be no Windows binaries on Omegahat for R > 2.7. > > b) A few are available from CRAN extras (one of the default > repositories on Window), and I've added Rstem. So please try again > now. > > On Thu, 5 Mar 2009, Maria I. Tchalakova wrote: > >> Hello, >> >> I am trying to install the Rstem package, but I have problems. I am >> using Windows XP and the 2.8.1 version of R. I have read the "Add-on >> packages" chapter of the "R Installation and Administration" manual, >> and also have tried several things, which worked for other people on >> the mailing list having faced the same problem >> (http://tolstoy.newcastle.edu.au/R/help/06/03/22889.html). >> >> I paste below the things, which I have tried and the results. I don't >> understand what the message "installation of package 'Rstem' had >> non-zero exit status" mean, which I get on my last try below. Could >> anyone advise me what should I do? Thank you. >> >> p.s. I have successfully installed the lsa package, which depends on >> the Rstem package. > > Only for some restricted value of 'success'. > >> >> >> ## First Try ## >>> chooseCRANmirror() >>> install.packages(c("Rstem", "lsa")) >> trying URL >> 'http://cran.at.r-project.org/bin/windows/contrib/2.8/lsa_0.61.zip' >> Content type 'application/zip' length 205671 bytes (200 Kb) >> opened URL >> downloaded 200 Kb >> >> package 'lsa' successfully unpacked and MD5 sums checked >> >> The downloaded packages are in >>C:\Documents and Settings\Administrator\Local >> Settings\Temp\RtmpdBelSq\downloaded_packages >> updating HTML package descriptions >> Warning message: >> package ‘Rstem’ is not available >> >> >> ## Second Try >>> install.packages("Rstem", repos = "http://www.omegahat.org/R";) >> Warning: unable to access index for repository >> http://www.omegahat.org/R/bin/windows/contrib/2.8 >> Warning message: >> package ‘Rstem’ is not available >> >> >> >> ## Third Try ## >>> install.packages("Rstem", repos = "http://www.omegahat.org/Rstem/";) >> Warning: unable to access index for repository >> http://www.omegahat.org/Rstem/bin/windows/contrib/2.8 >> Warning message: >> package ‘Rstem’ is not available >> >> >> The Rstem package could be found here: >> http://www.omegahat.org/Rstem/ >> >> >> >> ## Fourth Try ## >>> install.packages("Rstem", repos = "http://www.omegahat.org/R";, type = >>> "source") >> >> trying URL 'http://www.omegahat.org/R/src/contrib/Rstem_0.3-1.tar.gz' >> Content type 'application/x-gzip' length 606408 bytes (592 Kb) >> opened URL >> downloaded 592 Kb >> >> tar (child): Cannot open archive >> /cygdrive/C\DO
Re: [R] Installing the Rstem package
Hello, yes with loading the package: library("Rstem") works! Thank you. On 3/6/09, Rolf Turner wrote: > > On 6/03/2009, at 10:29 AM, Maria I. Tchalakova wrote: > >> Hello, >> >> thanks a lot for the replies. I've installed the binary for R-2.8.x >> available at: >> http://www.statistik.uni-dortmund.de/~ligges/Rstem_0.3-1.zip >> >> However, when I try using some of the functions, such as >> getStemLanguages() or wordStem(), I get: >> >>> getStemLanguages() >> Error: could not find function "getStemLanguages" >> >> or >> >>> words = c("sing", "singing", "singer") >>> wordStem(words, language = "english") >> Error: could not find function "wordStem" >> >> Why do I get this? Haven't I installed the package correctly? I've >> done this using the R Gui: "Packages" --> "Install package(s) from >> local zip files ...", have chosen the .zip file, which I've downloaded >> from the URL you sent me, and I got: >> >>> utils:::menuInstallLocal() >> package 'Rstem' successfully unpacked and MD5 sums checked >> updating HTML package descriptions >> >> Do I need to do something else? I receive the same results after >> installing (in this way) the the binary for R-2.7.x. > > It sounds to me like you haven't ***loaded*** the package. > > See ?library. > > cheers, > > Rolf Turner > > ## > Attention: > This e-mail message is privileged and confidential. If you are not the > intended recipient please delete the message and notify the sender. > Any views or opinions presented are solely those of the author. > > This e-mail has been scanned and cleared by MailMarshal > www.marshalsoftware.com > ## > __ R-help@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.
[R] installing and loading packages
Hello, is it possible to make so that once I have installed and loaded the necessary packages in R, I don't need to install and load them for a new session in R? Up to now I install packages, for example, like this: install.packages("package_name") and then load them like this: library("package_name") When I exit R and then run it again, I need to install and load the packages using again the above commands, so that I can use them. (I save the workspace before I exit, but this doesn't help). Thank you. __ R-help@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.
[R] R interpreter not recognized
Hello, I am trying to install a program based on R, but I am receiving the following error message: r...@darkstar:/home/maria/UCS# perl System/Install.perl Error: Can't run the R interpreter (/usr/local/bin/R). Please make sure that R is installed and specify the fully qualified filename of the R interpreter with -R if necessary (see "doc/install.txt"). I do have installed R, and I can see it (it is working also fine when I use it): > which R > /usr/local/bin/R I have specified the location of the R interpreter with -R (or -rh) /usr/local/bin/R" when running the program, but it still doesn't work. I have also used -R /usr/local/lib/R/bin/R or -rh /usr/local/lib/R/bin/R. I have also added the locations to my search path. It seems that the problem comes from my environment, but I cannot figure out what's wrong. Do you have any clues why the interpreter cannot be found? Thank you. __ R-help@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.
Re: [R] R interpreter not recognized
Hi Paul, I am using Slackware 12.0.0. Maria On Thu, Apr 9, 2009 at 2:35 PM, Paul Smith wrote: > On Thu, Apr 9, 2009 at 9:01 AM, Maria I. Tchalakova > wrote: >> I am trying to install a program based on R, but I am receiving the >> following error message: >> r...@darkstar:/home/maria/UCS# perl System/Install.perl >> Error: Can't run the R interpreter (/usr/local/bin/R). >> Please make sure that R is installed and specify the fully qualified >> filename of the R interpreter with -R if necessary (see "doc/install.txt"). >> >> I do have installed R, and I can see it (it is working also fine when I use >> it): >>> which R >>> /usr/local/bin/R >> I have specified the location of the R interpreter with -R (or -rh) >> /usr/local/bin/R" when running the program, but it still doesn't work. >> I have also used -R /usr/local/lib/R/bin/R or -rh >> /usr/local/lib/R/bin/R. >> I have also added the locations to my search path. >> >> It seems that the problem comes from my environment, but I cannot >> figure out what's wrong. Do you have any clues why the interpreter >> cannot be found? > > Maria: what is the Linux distribution that you are using? > > Paul > __ R-help@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.
[R] Installing R on Ubuntu 8.10
Hi, I am trying to install R on Ubuntu 8.10. I have added this line: deb http://cran.at.r-project.org/bin/linux/ubuntu intrepid/ in my /etc/apt/sources.list file. However when I "Reload", I get the following error message: W: GPG error: http://cran.at.r-project.org intrepid/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D67FC6EAE2A11821 I have tried different mirror sites, but the result is the same. There is nothing written about public keys on the download page: http://cran.at.r-project.org/ Then, I have tried (after I added the line to the /etc/apt/sources/list file) not pressing "Reload", but "Close", and I have written in the console: sudo apt-get update but I received similar message again: Reading package lists... Done W: GPG error: http://cran.rakanu.com intrepid/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D67FC6EAE2A11821 W: You may want to run apt-get update to correct these problems Do you know what the problem is, and what should I do? Thanks in advance. Maria __ R-help@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.
Re: [R] Installing R on Ubuntu 8.10
Hi Dan, thanks for the reply. Yes, I have read everything there, but it didn't help. I've written to the Ubuntu forums as well, from where I was told to type first: > gpg --keyserver keyserver.ubuntu.com --recv D67FC6EAE2A11821 > gpg --export --armor D67FC6EAE2A11821 | sudo apt-key add - before > sudo apt-get update > sudo apt-get install r-base and it worked. Best, Maria On Sat, May 16, 2009 at 11:52 AM, Nordlund, Dan (DSHS/RDA) wrote: >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf Of Maria I. Tchalakova >> Sent: Saturday, May 16, 2009 2:37 AM >> To: R-help Forum >> Subject: [R] Installing R on Ubuntu 8.10 >> >> Hi, >> >> I am trying to install R on Ubuntu 8.10. I have added this line: >> >> deb http://cran.at.r-project.org/bin/linux/ubuntu intrepid/ >> >> in my /etc/apt/sources.list file. However when I "Reload", I get the >> following error message: >> W: GPG error: http://cran.at.r-project.org intrepid/ Release: The >> following signatures couldn't be verified because the public key is >> not available: NO_PUBKEY D67FC6EAE2A11821 >> >> I have tried different mirror sites, but the result is the same. There >> is nothing written about public keys on the download page: >> http://cran.at.r-project.org/ >> >> Then, I have tried (after I added the line to the >> /etc/apt/sources/list file) not pressing "Reload", but "Close", and I >> have written in the console: >> sudo apt-get update >> >> but I received similar message again: >> >> Reading package lists... Done >> W: GPG error: http://cran.rakanu.com intrepid/ Release: The following >> signatures couldn't be verified because the public key is not >> available: NO_PUBKEY D67FC6EAE2A11821 >> W: You may want to run apt-get update to correct these problems >> >> Do you know what the problem is, and what should I do? Thanks in advance. >> >> Maria >> > > Maria, > > Go to the CRAN website (or your preferred mirror), select Linux under the > download and install section, then select Ubuntu, and read what it says about > installation. > > http://cran.r-project.org/ > > Hope this is helpful, > > Dan > > Daniel J. Nordlund > Washington State Department of Social and Health Services > Planning, Performance, and Accountability > Research and Data Analysis Division > Olympia, WA 98504-5204 > > > __ R-help@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.