Skip to contents

Load DataImporterConfiguration from XML file.

Usage

loadDataImporterConfiguration(configurationFilePath)

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
)