Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve "install.packages" handling on Mac OS X
  • Loading branch information
Valentin Georgiev committed Sep 17, 2013
1 parent dc2f90b commit 837893e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -468,7 +468,7 @@ public String eval(String command, RServi myRServi) {
logger.debug("R cmd: " + command);
String returnVal = "R console is inactivated: " + NEWLINE + status;
if (working) {
if (command.contains("install.packages") && OS.startsWith("Mac")) {
if ( OS.startsWith("Mac") && command.contains("install.packages") && !command.contains("repos=")) {
int i = command.lastIndexOf(")");
StringBuilder cmdDefMirror = new StringBuilder(command.substring(0, i));
cmdDefMirror.append(", repos=\"http://cran.us.r-project.org\")");
Expand Down

0 comments on commit 837893e

Please sign in to comment.