create-study | R Documentation |
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",
...
)
path |
Path where to create study, it should be an empty directory, if it doesn't exist, it'll be created. |
study_name |
Name of the study. |
antares_version |
Antares number version. |
host |
Host of AntaREST server API. |
token |
API personnal access token. |
... |
Other query parameters passed to POST request. |
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, ...).
## Not run:
# 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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.