Load DataImporterConfiguration
from XML file.
Source: R/utilities-data-importer-configuration.R
loadDataImporterConfiguration.Rd
Load DataImporterConfiguration
from XML file.
Arguments
- configurationFilePath
Path to the XML file with stored configuration (e.g. created in PK-Sim or MoBi).
Value
A new DataImporterConfiguration
object to be used with
loadDataSetsFromExcel()
.
Examples
configurationFilePath <- system.file(
"extdata", "dataImporterConfiguration.xml",
package = "ospsuite"
)
importerConfiguration <- loadDataImporterConfiguration(configurationFilePath)
# Specifying which sheet to load
importerConfiguration$sheets <- "TestSheet_1"
xlsFilePath <- system.file("extdata", "CompiledDataSet.xlsx", package = "ospsuite")
dataSets <- loadDataSetsFromExcel(
xlsFilePath = xlsFilePath,
importerConfigurationOrPath = importerConfiguration,
importAllSheets = FALSE
)