java-tools

0th

Percentile

java tools used internally in rJava

java tools used internally in rJava

Aliases
  • java-tools
Examples
# running the java unit tests from the R examples
.jinit()
J("RJavaTools_Test")$runtests()
J("RJavaArrayTools_Test")$runtests()
J("ArrayWrapper_Test")$runtests()
J("RectangularArrayBuilder_Test")$runtests()

# now testing some jni functions
if (!nzchar(Sys.getenv("NOAWT"))) {
  p <- .jnew( "java/awt/Point" )
  classes <- .Call( "RgetSimpleClassNames", p@jobj, TRUE, PACKAGE = "rJava" )
  stopifnot( all( c( "Point", "Point2D", "Object", "error", "condition" ) %in% classes ) )
  classes <- .Call( "RgetSimpleClassNames", p@jobj, FALSE, PACKAGE = "rJava" )
  stopifnot( all( c( "Point", "Point2D", "Object" )  %in% classes ) )
}
Documentation reproduced from package rJava, version 0.9-1, License: GPL-2

Community examples

Looks like there are no examples yet.