Status
lines of R code: 13, lines of test code: 0
Version
0.0.1 ( 2020-01-03 22:07:16 )
Description
A Package packaging up some Java code and allowing it to be called from R.
License
Apache License (>= 2.0) Peter Meissner [aut, cre]
Citation
citation("javahelloworld")
Meissner P (2020). javahelloworld: Minimal and Toy Example of some Java Code Packaged up for R. R package version 0.0.1.
BibTex for citing
toBibtex(citation("javahelloworld"))
@Manual{,
title = {javahelloworld: Minimal and Toy Example of some Java Code Packaged up for R},
author = {Peter Meissner},
year = {2020},
note = {R package version 0.0.1},
}
Installation
Stable version from CRAN:
install.packages("javahelloworld")
starting up
library(javahelloworld)
## Loading required package: rJava
calling Java?
test_method_call
## function(){
## tmp <- rJava::.jnew("javahelloworld.App")
## tmp$test_method()
## }
## <bytecode: 0x00000000155cfdd0>
## <environment: namespace:javahelloworld>
let it run
test_method_call
## function(){
## tmp <- rJava::.jnew("javahelloworld.App")
## tmp$test_method()
## }
## <bytecode: 0x00000000155cfdd0>
## <environment: namespace:javahelloworld>
on.load
function with rJava initialization to zzz.R fileSystemRequirements: Java
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.