|
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(); ) |
Answered by
s-u
Dec 10, 2024
Replies: 2 comments
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you cross-posted - see #335