tags:

views:

332

answers:

1

I have started to try to use StatET and Texlipse with a view to producing SWEAVE reports. When starting the R console in the StatET plug-in for Eclipse (OS X 10.6.4), I get the message:

[INFO] The R package 'rj' is not available, R-StatET tools cannot be initialized.

Information on http://www.walware.de/goto/statet states:

"The package only works in the default R Console (RJ) in StatET. Therefore you have to install and update it using the command line":

R CMD INSTALL --no-test-load rj_*.tar.gz

What does this mean exactly?

In Eclipse under "Install new Software" and the site

WalWare - http://download.walware.de/eclipse-3.6

it states that

  RJ Core Library 0.5.0.b201008271600sw

is already installed.

Any helpful guidance gratefully received.

A: 

It looks like you need to install the RJ library which can be downloaded from the StatET site here: http://download.walware.de/rj/rj_0.5.0-5.tar.gz

If you save that file on your desktop, you can then load it into R with the command they provided R CMD INSTALL --no-test-load rj_*.tar.gz after navigating to your desktop or wherever you saved the library file. Alternatively, you MAY be able to use the GUI interface and select Install packages from local ZIP files under Packages in R, though I haven't used R on a Mac so the layout may be slightly different.

Chase
Thanks. Your comments gave me a nudge in the right direction. I was being foolish, the command is simply run in Terminal R CMD INSTALL --no-test-load rj_*.tar.gz* installing to library ‘/Library/Frameworks/R.framework/Resources/library’* installing *source* package ‘rj’ ...** R** inst** preparing package for lazy loading** helpNo man pages found in package ‘rj’ *** installing help indices** building package indices ...* DONE (rj)
@user441706 - glad you got going in the right direction, I should have mentioned that the command needs to be run from the terminal window on a Mac or in Linux, or from a DOS prompt on a Windows machine. Good luck!
Chase
OK - it all works and I 'SWEAVEd' my first document in Eclipse! One think that didn't quite go to plan was the reading of a csv file: > df<-read.csv(file.choose(),header=T)Error in file.choose() : file choice cancelledbut if I moved the file into the workspace then: df<-read.csv("/Users/mfar_1/Documents/workspace/MF2/test.csv") Will choose not work within Eclipse?
@user441706 - I wasn't able to reproduce your error using `file.choose()` within Sweave, but that may be due to a whole host of reasons. In general, it is best practice on Stack Overflow to have separate questions for each problem you encouner or are trying to solve. If there are two or three items that are related - then listing them together may be fine. Your question re: `file.choose()` in Eclipse definitely warrants its' own question though.
Chase
Thanks. I don't wish to breach etiquette! I'll ask a new question.