generateDataTest: Create a Java program to test R - Java data type mapping

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
generateDataTest(mainServ, mainPkg, lookup, addonType, verbose)

Arguments

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 generateDataMap

addonType

character. Additional types required for creating the data test,e.g., to test conversion of an R list containing particular S4 classes requires that the particular classes be named as addonType.

verbose

logical. Report progress to console?

Value

returns NULL.

Author(s)

Nianhua Li

See Also

generateDataMap

Examples

1
  ## see '?generateDataMap' for an example of generating java test program 

RWebServices documentation built on Oct. 5, 2016, 4:53 a.m.