This vignette describes how to migrate from the old project structure to the new structure implemented in PR #692. The new structure provides improved, harmonized, and easier-to-use project organization.
You only need to run the migration if your project was created with esqlabsR v5.2.0 or earlier. It is necessary to run the migration process only once per project.
Parameters
folder has been renamed to Configurations
PopulationsCSV
folderPopulationParameters.xlsx
has been renamed to Populations.xlsx
populationParamsFile
field in ProjectConfiguration
class is now populationsFile
compoundPropertiesFile
property has been removedThe package includes built-in support for automatically handling project configurations from previous versions (v5). When loading an older project configuration file, the package will:
To update your project configuration to the new format:
projectConfig <- createProjectConfiguration("path/to/old/ProjectConfiguration.xlsx")
projectConfig$save("path/to/new/ProjectConfiguration.xlsx")
This will automatically:
- Rename all properties to match the new structure
- Remove deprecated properties (like compoundPropertiesFile
)
- Preserve all your existing paths and settings
Tip: While the package can read old configuration files, it's recommended to update to the new format to ensure compatibility with future versions.
# Old structure project/ ├── Parameters/ │ └── PopulationParameters.xlsx └── ... # New structure project/ ├── Configurations/ │ └── Populations.xlsx ├── PopulationsCSV/ └── ...
PopulationParameters.xlsx
to Populations.xlsx
Configurations
folderSome functions and properties have been renamed, thus project code using previous project structure will need to be updated.
# Old code projectConfig <- createDefaultProjectConfiguration(...) # Deprecated projectConfig$populationParamsFile # Old property # New code projectConfig <- createProjectConfiguration(...) # New recommended function projectConfig$populationsFile # New property
createProjectConfiguration()
function instead of the deprecated createDefaultProjectConfiguration()
Configurations
folderPopulationsCSV
folderProject structure before ESQlabsR v5.0.0 is not supported in latter versions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.