Re: [R] Installing R in Linux: problems with JAVA packages (rJava, RWeka, ...) ?

2008-10-22 Thread Paulo Cortez
Thanks for the many answers I received. This is becoming a nightmare and I am concluding that installing java1.6 in CentOS5 is particularly hard, specially if you installed previous jdk versions... I tryed a wide range of solutions. I resume some of them: 1) Tryed to reinstall jdk1.6 and use

Re: [R] How to save/load RWeka models into/from a file?

2008-10-21 Thread Paulo Cortez
Kurt Hornik wrote: Paulo Cortez writes: Using a current version of rJava, you can register the Java side objects for serialization using .jcache(). E.g., m1 <- J48(Species ~ ., data = iris) .jcache(m1$classifier) then save/load will work as expected. Eventually, the above may hap

[R] Installing R in Linux: problems with JAVA packages (rJava, RWeka, ...) ?

2008-10-21 Thread Paulo Cortez
Hi, While in MacOS it is quite simple to install R and Java packages, the same is not true for Linux. I surfed the web and it seems that other users also have similar problems. Perhaps a nice FAQ answer or HOWTO would help... But here is my situation: I have 2 linux servers, one with Fedora

Re: [R] How to save/load RWeka models into/from a file?

2008-10-17 Thread Paulo Cortez
Achim Zeileis wrote: On Thu, 16 Oct 2008, Paulo Cortez wrote: Hi, I want to save a RWeka model into a file, in order to retrive it latter with a load function. See this example: library(RWeka) NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes") model<-NB(f

[R] How to save/load RWeka models into/from a file?

2008-10-16 Thread Paulo Cortez
Hi, I want to save a RWeka model into a file, in order to retrive it latter with a load function. See this example: library(RWeka) NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes") model<-NB(formula,data=data,...) # does not run but you get the idea save(model,file="model.dat"

[R] Installing RWeka package in CentOS 5: problems with JAVA?

2008-10-01 Thread Paulo Cortez
Hi, I am a R user, with some experience in MacOS, Linux, etc, but I am having a problem that I cannot solve: I have a linux server (CentOS 5) and I installed sun jdk1.6. For instance: $ java -version Java version "1.6.0_10-rc2" Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32) Java Hot

[R] RStem with portuguese language

2008-07-28 Thread Paulo Cortez
Greetings, I have R 2.7.1 in MacOs and I believe UTF encoding is already installed. At least: > Sys.getenv() shows several variables, including: LANG "pt_PT.UTF-8" I installed the Rstem and tm packages and when I try the following code: > wordStem(c("aberração","aberrações"), language="por