Skip to content

Instantly share code, notes, and snippets.

@cannin
Forked from haven-jeon/rjava_test.R
Last active January 14, 2020 16:28
Show Gist options
  • Save cannin/79702a2668eecfbf3813880ae4ccc718 to your computer and use it in GitHub Desktop.
Save cannin/79702a2668eecfbf3813880ae4ccc718 to your computer and use it in GitHub Desktop.
Test rJava
library(rJava)
.jinit()
s <- .jnew("java/lang/String", "Hello World!")
.jcall(.jnew("java/lang/Runtime"), "J", "totalMemory")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment