RWebServices (version 1.36.0)

generateDataMap: Create java beans and mapping functions for a R data type

Description

The generateDataMap function generates java beans and R--Java data type conversions for a R data type if they are not available in the environment lookup. All java mappings are output as files under CurrentWorkingDir/biocJavaMap, where CurrentWorkingDir is the result of getwd(). This function also updates environments lookup and cvtImport (see arguments below) as a side effect.

Usage

generateDataMap(rType, javaToR, deployMode, typeMode, lookup)

Arguments

rType
a character vector containing a R data type name. The data type is either a S4 class or a ClassUnion.
javaToR
logical, TRUE if want to convert Java data to R, FALSE if want to convert R data to Java.
deployMode
Character, either "demo" or "jms". How the service will be deployed. "demo" is no longer supported.
typeMode
Character, either "robject" or "javalib". How Java objects should be generated; see generateDataMap and converters
lookup
environment, key is rType, value is of type RJMap. RJMap provides the java type, java package, and java--R conversion function names for the key. By default, lookup only contains mapping information for vector, list, factor, data frame, array, matrix, environment and NULL

Value

returns updated environment lookup.

See Also

printLookup

Examples

Run this code
    ## used internally

Run the code above in your browser using DataCamp Workspace