Create study on disk or with AntaREST server through the API.
createStudy(path, study_name = "my_study", antares_version = "8.2.0")
createStudyAPI(
host,
token = NULL,
study_name = "my_study",
antares_version = "8.2.0",
...
)
Result of antaresRead::setSimulationPath()
or antaresRead::setSimulationPathAPI()
accordingly.
From Antares version 9.0 onwards, versioning is only done with one number for the major version number and a two-digit number for the minor version number (e.g. 9.0, 9.12, 10.58, ...).
if (FALSE) { # \dontrun{
# with default values
createStudy("path/to/simulation",
study_name = "my_study",
antares_version = "8.2.0")
# with Antares study version >= 9 (max 2 digits, ex : "9.15")
createStudy("path/to/simulation",
study_name = "my_study",
antares_version = "9.15")
} # }