Set a configuration with a temporary project directory
cfg_tmp_project.Rd
Copy the XML SIC project file in a temporary folder and modify the configuration according the new location of the XML SIC project file.
Usage
cfg_tmp_project(
xml_path = system.file("sic_project_test1.xml", package = "rsic2"),
cfg = loadConfig(xml_path = xml_path)
)
Arguments
- xml_path
character, the path of the XML SIC project file
- cfg
config, the configuration to modify
Examples
# Copy the example project provided in the package into a temporary folder
cfg <- cfg_tmp_project()
#> `sic_path` defined by environment variable SICPATH=C:\DocDD\Inrae\MyDrive\SIC
#> Error in loadConfig(xml_path = xml_path): Path for SIC is undefined or does not exist: C:\DocDD\Inrae\MyDrive\SIC
cfg$project$xml_path
#> Error: object 'cfg' not found