-
Where is the error message in rJava package: This is my java code:
// Launcher.main(null);
But I run it in the R: setLib_and_launchJVM();
) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Since you cross-posted - see #335 |
Beta Was this translation helpful? Give feedback.
-
I also give some solutions for using R in Rstuido: temp.out <- tempfile(fileext = ".txt")
on.exit(unlink(temp.out))
jSys <- rJava::J("java/lang/System")
jOrigOut <- jSys$out
jSys$setOut(rJava::.jnew("java/io/PrintStream", temp.out))
bioinfojavautils$go(rJava::.jarray(strsplit(cmd, "\\s+")[[1]]))
jSys$setOut(jOrigOut) This is a way |
Beta Was this translation helpful? Give feedback.
Since you cross-posted - see #335