swig/Examples/test-suite/r/namespace_struct_runme.R

12 lines
257 B
R

clargs <- commandArgs(trailing=TRUE)
source(file.path(clargs[1], "unittest.R"))
dyn.load(paste("namespace_struct", .Platform$dynlib.ext, sep=""))
source("namespace_struct.R")
cacheMetaData(1)
xy = Y()
xy$x = as.integer(2)
xy$y = as.integer(4)
copyToR(xy)