File: rep.Rd

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (32 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\name{rep}
\alias{rep,jarrayRef-method}
\alias{rep,jobjRef-method}
\alias{rep,jrectRef-method}

\title{Creates java arrays by cloning}
\description{ 
	Creates a java array by cloning a reference several times
}
\section{Methods}{
  \describe{
    \item{rep}{\code{signature(object = "jobjRef")}: ... }
    \item{rep}{\code{signature(object = "jarrayRef")}: ... }
    \item{rep}{\code{signature(object = "jrectRef")}: ... }
  }
}

\seealso{
  \code{\link[base]{rep}} or \code{\link{.jarray}}
}

\examples{
\dontshow{.jinit()}
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 )
}
}