Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Started adding the R version warning message
  • Loading branch information
Valentin Georgiev committed Jan 16, 2012
1 parent 36cc02e commit 2140de3
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -200,6 +200,11 @@ private boolean runRCmd(String Rcommand) {
* Check if all R dependencies are installed, such as "rj" and "rJava"
*/
private void checkRdependencies() throws FileNotFoundException {
runRCmd("R -e \"getRversion()\" -s");
// if (!status.contains("1.14.")) {
// MessageDialog.openInformation(Viewer, "Warning", "R version warning");
// }
logger.debug(status);
if (!runRCmd("R -e \".find.package('rJava')\" -s")) {
logger.debug("Error: Package rJava not found.");
if (!runRCmd("R -e \"install.packages('rJava', repos='http://cran.stat.ucla.edu')\" -s")) {
Expand Down

0 comments on commit 2140de3

Please sign in to comment.