Description Usage Arguments Value Examples
The function takes as input the path to a XML file that contains a LDCP system. Then it validates the LDCP system and generates its corresponding in R code. This R code is stored in an output file. The output file path is another function parameter.
1 | xml2rldcp(input, output)
|
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". |
If the process ends without error, the user will receive two messages: one indicates that the XML is valid and the other indicates that the code has been generated successfully. Otherwise, the user will receive the detailed list of errors.
1 2 3 4 | ## Not run: xml2rldcp('extdata/comfortableroom.xml','comfortableroom.R')
## The xml is valid
## The code has been generated successfully
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.