Skip to content

Commit

Permalink
Fix for Bug 3550 (R models on Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Georgiev committed Aug 16, 2013
1 parent 8541fc4 commit ae4943d
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -82,7 +82,10 @@ public void initialize(IProgressMonitor monitor) throws DSException {

try {
String path = FileUtil.getFilePath(rm, getPluginID());


if (System.getProperty("os.name").toString().startsWith("Windows")) {
path = path.substring(1);
}
String loadModelResult = R.eval("load(\"" + path + "\")");

if (loadModelResult.startsWith("Error"))
Expand Down

0 comments on commit ae4943d

Please sign in to comment.