I had already seen this post. If I'm logged as root (it is possible under macosx), here is the result:

* First run:

> reuters <- tm_map(reuters, stemDocument)
Error in .jnew(name) :
java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
Unable to create WEKA_HOME (/Users/admin/wekafiles)
Unable to create packages directory (/Users/admin/wekafiles/packages)
Unable to create repository cache directory (/Users/admin/wekafiles/ repCache)
Unable to create WEKA_HOME (/Users/admin/wekafiles)
Unable to create packages directory (/Users/admin/wekafiles/packages)
Unable to create repository cache directory (/Users/admin/wekafiles/ repCache)
Refreshing GOE props...

* Second run:

> reuters <- tm_map(reuters, stemDocument)
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!
Stemmer 'porter' unknown!
Stemmer 'english' unknown!

BTW, thank you very much for your assistance.

Julien

On Jan 16, 2012, at 10:40 AM, Milan Bouchet-Valat wrote:

Le dimanche 15 janvier 2012 à 23:06 +0100, Julien Velcin a écrit :
I use the version 1.6:

$ java -version
java version "1.6.0_26"
OK, so nothing wrong on that side.

FWIW, I've found another person with the same problem:
https://list.scms.waikato.ac.nz/pipermail/wekalist/2010-June/048895.html

He says that when R is run as root, it works. But he's on Linux, and I'm not sure that's really likely to be the problem on OS X. You might still
want to try this, anyway.

Let's CC Kurt Hornik, he'll be much more clueful than I am... ;-)

______________________________________________
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.

Reply via email to