loadDataImporterConfiguration: Load 'DataImporterConfiguration' from XML file.

View source: R/utilities-data-importer-configuration.R

loadDataImporterConfigurationR Documentation

Load DataImporterConfiguration from XML file.

Description

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
)


Open-Systems-Pharmacology/OSPSuite-R documentation built on Feb. 14, 2025, 4:48 p.m.