RTextTools Beta Release

8 views
Skip to first unread message

Tim Jurka

unread,
Jun 10, 2011, 8:48:23 PM6/10/11
to Jon Moody, John D Wilkerson, Paul Wolfgang, Anna Maria Palau Roque, rtextto...@googlegroups.com
Hello Jon, John, Paul, and Anna!

The team has been working to prepare RTextTools for the Catania conference, and we now have a beta release ready for you to test out. We really appreciate your feedback; please let us know of any problems you encounter during the installation and testing process.

You can get started by visiting http://www.rtexttools.com/ . The "Documentation" section contains a rough draft of the user manual, along with a few example R scripts to help you begin.

Best,
Tim


--
Timothy P. Jurka
Graduate Student
Department of Political Science
University of California, Davis
www.timjurka.com

Paul Wolfgang

unread,
Jun 12, 2011, 1:56:35 PM6/12/11
to Tim Jurka, Jon Moody, John D Wilkerson, Anna Maria Palau Roque, rtextto...@googlegroups.com
Unfortunately I cannot get it to install. It fails configuring rJava.
Also, most unfortunately, it does not give any meaningful error messages
as to why it failed.

I tired it both with and without installing RTools. Note: my system
already has mingw64 installed, but I put the RTools before it on the
path. This didn't make any difference either.

I also have R installed on a Unix box at Temple. I'll try it on Tuesday.

Paul Wolfgang

Tim Jurka

unread,
Jun 13, 2011, 3:53:46 PM6/13/11
to John D Wilkerson, lor...@uw.edu, Jon Moody, Paul Wolfgang, Anna Maria Palau Roque, rtextto...@googlegroups.com
Paul Wolfgang had the same problem, and I'll have to look into what's causing it. Loren... Wouter... any ideas?

Best,
Tim

On Jun 13, 2011, at 12:51 PM, John D Wilkerson wrote:

> I'm starting to poke at this. I installed R from scratch and the rtools and this as well...
>
>> install.packages("RTextTools", repos = repositories, type = "source")
>
> There were some error messages along the way, e.g.
>
> * installing *source* package 'rJava' ...
> ERROR: configuration failed for package 'rJava'
> * removing 'C:/Users/JohnW/Documents/R/win-library/2.13/rJava'
> * installing *source* package 'slam' ...
> ** libs
> ERROR: compilation failed for package 'slam'
>
> And then when I tried to load the RTextTools library...
>
> Error in library(RTextTools) : there is no package called 'RTextTools'
>
>
> ?
>
>
> John D. Wilkerson
> Box 353530
> University of Washington
> Seattle, WA 98195
>
> phone 206-543-8030
> fax 206-685-2146
>
> cappp.org
> http://sites.google.com/a/u.washington.edu/jdwbio/

Loren Collingwood

unread,
Jun 13, 2011, 4:36:11 PM6/13/11
to rtextto...@googlegroups.com, John D Wilkerson, lor...@uw.edu, Jon Moody, Paul Wolfgang, Anna Maria Palau Roque
I ran into something similar with rjava on windows. I can't remember how I installed it but I had to google around for a while. I've had rjava issues on each OS now so it's something endemic to that library. John, you around today? I could swing by later and see how to fix it.
-Loren
--
Loren Collingwood
loren.co...@gmail.com

Loren Collingwood

unread,
Jun 13, 2011, 9:30:46 PM6/13/11
to rtextto...@googlegroups.com
Hi,
I went through the installation process on John's laptop (32 bit Windows 7, R 2.13.1). There are a few problems that arose.
1. rJava -- the installation problem here is that the computer needs to have the JDK Java developer toolkit. I downloaded version x86 here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html 
And here's the documentation.

Once that is installed then go to the r console and type install.packages('rJava') and it should install. You can check by typing library(rJava). If no error appears then you're good.

2. Dependencies. When I went to install RTextTools, there were a host of error messages indicating that many of the packages were not installing, so I manually installed most of them. Chief among the violators was the tm package. This seems weird to me but somehow R wasn't installing these correctly.

3. Maxent -- After I installed the Rtools.exe link, I then had to put Rtools and MinGW on the environment variable path. C:\Rtools\bin; C:\Rtools\MinGW\bin

Then everything worked and we are famous. Short end of this, with windows, I'm not sure if we can anticipate smart non-computer people to be able to install this as is, unless we have them follow these directions exactly.

-Loren


On Mon, Jun 13, 2011 at 1:52 PM, John Wilkerson <jwi...@u.washington.edu> wrote:
yep



--
Loren Collingwood
loren.co...@gmail.com

Paul Wolfgang

unread,
Jun 13, 2011, 9:37:11 PM6/13/11
to rtextto...@googlegroups.com
I already have the JDK installed.

I'll try manually installing all the packages.


Paul Wolfgang
Department of CIS
Temple University
Sent from my iPhone

Amber Boydstun

unread,
Jun 14, 2011, 7:03:50 AM6/14/11
to rtextto...@googlegroups.com
Hi Paul,

Thanks for your patience, and sorry about the hassle.  It goes with the territory, as you surely know better than I do!  Tim and Loren and Wouter are going great guns trying to get things sorted out.  In the meantime, let us know if you have luck with the manual install.

Cheers,
Amber

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Amber E. Boydstun
Assistant Professor

Department of Political Science
University of California, Davis
One Shields Ave
Davis, CA 95616

http://psfaculty.ucdavis.edu/boydstun/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tim Jurka

unread,
Jun 15, 2011, 1:29:18 AM6/15/11
to rtextto...@googlegroups.com
Yeah, this is a bummer... I was hoping rJava wouldn't be giving us so many problems. Loren, is it just boosting and bagging that use rJava? If so, there is a non-Java library for those two ( adabag - http://cran.r-project.org/web/packages/adabag/index.html ) and we might be able to find alternatives for any other Java alogrithms as well.

Tim

Loren Collingwood

unread,
Jun 15, 2011, 1:35:26 AM6/15/11
to rtextto...@googlegroups.com
I think that is right -- the algorithms from the RWeka library are the ones that use rJava. But from what I recall rJava was used in some of the stemming, etc. from the 'tm' package. I should note, however, that with R.2.13 I did not have problems installing rJava on Mac. That may be because I had already installed the proper JDK but it also may be because the problem was solved with R.2.13 rJava version. I'm not particularly in the mood to investigate this issue at the moment, but it's something we can look at whilst in Catania.
-LC
Loren Collingwood
Ph.D. Candidate
Department of Political Science
University of Washington
http://staff.washington.edu/lorenc2
lor...@uw.edu



Tim Jurka

unread,
Jun 15, 2011, 1:38:34 AM6/15/11
to rtextto...@googlegroups.com
Okay. I replaced the Snowball stemmers with Rstem which is written in C, so we might be able to eliminate rJava altogether.

Tim

Loren Collingwood

unread,
Jun 15, 2011, 1:45:39 AM6/15/11
to rtextto...@googlegroups.com
Nice. So why don't we work on that in Catania one night instead of going out drinking with the Europeans (besides I'm sure they don't want me to embarrass them). While we're at it, we can add in the LDA and those few other algorithms we haven't gotten around to.
-LC
--
Loren Collingwood
loren.co...@gmail.com

Tim Jurka

unread,
Jun 15, 2011, 1:46:42 AM6/15/11
to rtextto...@googlegroups.com
Sounds like a plan... so drinking and coding instead? :)

Tim

Loren Collingwood

unread,
Jun 15, 2011, 1:57:53 AM6/15/11
to rtextto...@googlegroups.com
Is there any other way?
Reply all
Reply to author
Forward
0 new messages