Skip to content

Commit

Permalink
Fixed Windows related filesepator issues
Browse files Browse the repository at this point in the history
... with soursing files in R and installing the bc2r package
  • Loading branch information
Valentin Georgiev committed Nov 29, 2011
1 parent df7129b commit 9441372
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -227,6 +227,10 @@ private void checkRdependencies() throws FileNotFoundException {
logger.debug("Error: Package bc2r not found.");
try {
rPluginPath = FileUtil.getFilePath("bc2r_1.0.tar.gz", "net.bioclipse.r.business");
if (OS.startsWith("Windows")) {
rPluginPath = rPluginPath.substring(1).replace(fileseparator, "/");
}
logger.debug(rPluginPath);
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Expand Down Expand Up @@ -460,7 +464,7 @@ public String[] parseCommand(String command) {
}

public String source(String filepath) {
eval("source(\"" + filepath + "\")");
eval("source(\"" + filepath.replace(fileseparator, "/") + "\")");
return "";
}

Expand Down

0 comments on commit 9441372

Please sign in to comment.