Creates java arrays by cloning
rep.RdCreates a java array by cloning a reference several times
Methods
- rep
signature(object = "jobjRef"): ...- rep
signature(object = "jarrayRef"): ...- rep
signature(object = "jrectRef"): ...
Examples
if (!nzchar(Sys.getenv("NOAWT"))) {
p <- .jnew( "java.awt.Point" )
a <- rep( p, 10 )
stopifnot( dim(a) == c(10L ) )
a[[1]]$move( 10L, 50L )
stopifnot( a[[2]]$getX() == 0.0 )
}
#> Error in .jcall("RJavaArrayTools", "[Ljava/lang/Object;", "rep", .jcast(x), as.integer(times), evalArray = FALSE): RcallMethod: cannot determine object class