Skip to content

Installing the Rstem package

7 messages · Maria I. Tchalakova, Brian Ripley, Uwe Ligges +1 more

#
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 ######
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 ########
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 ######
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 ######
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
######
#
Have you tried the binary for R-2.7.x available from
http://www.omegahat.org/R/bin/windows/contrib/2.7/Rstem_0.3-1.zip
which might or might not work for recent versions of R.

Have you asked the Omegahat maintainer for an update of the (obviously 
quite outdated) Windows repositories? CCing now.

Your build tools are not set up correctly according to the error 
messages you get when trying to install from sources.

I have made a binary for R-2.8.x available at:
http://www.statistik.uni-dortmund.de/~ligges/Rstem_0.3-1.zip
which will be removed again shortly.

Uwe Ligges
Maria I. Tchalakova 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:

            
Only for some restricted value of 'success'.

  
    
#
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:
Error: could not find function "getStemLanguages"

or
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:
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:
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 <ripley at stats.ox.ac.uk> wrote:
#
Maria I. Tchalakova wrote:
Have you loaded the package via

   library("Rstem")  ?

It works for me.
No, Brian meant the CRAN extras repository he maintains in Oxford. And 
since it is a default repository for R binary packages for Windows, now also
install.packages("Rstem")
should work for you.

Anyway, you always need to load the package before using it.

  Uwe Ligges
#
On 6/03/2009, at 10:29 AM, Maria I. Tchalakova wrote:

            
It sounds to me like you haven't ***loaded*** the package.

See ?library.

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
#
Hello,

yes with loading the package: library("Rstem") works! Thank you.
On 3/6/09, Rolf Turner <r.turner at auckland.ac.nz> wrote: