Description Usage Arguments Value Author(s) See Also Examples
The generateDataTest
function is used to validate the results
of function generateDataMap
. Given the name of a R data
type, and the lookup
environment updated by
generateDataMap
, function generateDataTest
creates a test
program in Java. The test program creates a java companion of the R data
type, converts it to the R data type, and converts it back to Java. This
round-trip can test both the Java bean and the convert functions.
1 | generateDataTest(mainServ, mainPkg, lookup, addonType, verbose)
|
mainServ |
Name of web service; used to generate class name and properties files. |
mainPkg |
Package name, used in Java package hierarchy and usually the same as the R package name where the data object is defined. |
lookup |
environment containing mapping between R and Java types;
see |
addonType |
character. Additional types required for creating the
data test,e.g., to test conversion of an R |
verbose |
logical. Report progress to console? |
returns NULL.
Nianhua Li
1 | ## see '?generateDataMap' for an example of generating java test program
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.