Skip to content

Commit

Permalink
Fix Bug 3299
Browse files Browse the repository at this point in the history
Save R Session button not aware if R is running or not
  • Loading branch information
Valentin Georgiev committed Sep 4, 2012
1 parent 863d5fd commit 0558217
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -87,8 +87,12 @@ protected String evalCommand(String command, boolean quotes) {
}

public void saveSession() {
if (r.eval("save.image(\".RData\")") != null)
printMessage(NEWLINE + "R Session saved");
String saveRes = r.eval("save.image(\".RData\")");
if (saveRes.isEmpty()) {
printMessage(NEWLINE + "R Session saved");
} else {
printMessage(NEWLINE + saveRes);
}
}

private void getRBusinessManager() {
Expand Down

0 comments on commit 0558217

Please sign in to comment.