Java – statet in eclipse and R
I've managed to install statet into eclipse. I have a java project called "test" with some code I hope to be able to The R file is saved in the project folder and run as a separate R script, separate from the Java program What shall I do? If I try to highlight Some R code in the R file and run it, it means "there is no r activity in the current workbench window"
Update: I added a run configuration. I now have the following error in the pop-up box when I try to run the R script:
Launching the R Console was cancelled,because it seems starting the R engine Failed. Please make sure that R package 'rj' (1.0.0 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'
Solution
You need to start the R console from eclipse first Select run – > run configuration from the menu bar If you have not already created an R configuration, you can create a new configuration by right clicking r console For more information, longhow Lam summarizes a nice Guide (PDF)
Edit: for your new error message, make sure to run one of the commands in the R command line version of R. for the current statet 2.0:
install. packages(c(“rj”,“rj.gd”),repos =“ http://download.walware.de/rj-1.0 ”)
For developing statet 3.0:
install. packages(c(“rj”,repos =“ http://download.walware.de/rj-1.1 ”)
For old statet 0.10:
install. packages(“rj”,repos =“ http://download.walware.de/rj-0.5 ”)