generate_code: Generate the R code

Description Usage Arguments Value Examples

Description

The function takes as input the path to a XML file that contains a LDCP system. Then it generates its corresponding in R code. This R code is stored in an output file. The output file path is another function parameter.

Usage

1
generate_code(input, output)

Arguments

input

is the XML source path file. E.g. "/folder/ldcp_system.xml".

output

is the R destination path file. E.g. "/folder/ldcp_system.R".

Value

If the process ends without error, the user will receive a message that indicates that the code has been generated successfully. Otherwise, the user will receive the detailed list of errors.

Examples

1
2
3
## Not run: generate_code('extdata/comfortableroom','comfortableroom')

## The code has been generated successfully

Example output



rLDCP documentation built on May 2, 2019, 2:30 a.m.

Related to generate_code in rLDCP...