getPlaylist gives the identifier of the MC years which
will be simulated in the Antares study, taking into account the potential use of a
playlist which can skip some MC years
setPlaylist is a function which modifies the input file of an ANTARES
study and set the playlist in order to simulate only the MC years given in input
getPlaylist(opts = antaresRead::simOptions()) setPlaylist(playlist, weights = NULL, opts = antaresRead::simOptions())
List of simulation parameters returned by the function
vector of MC years identifier to be simulated can be a list (V8 compatibility) but not recommended
data.table, 2 columns : mcYears and weights. Only with after antares V8
getPlaylist returns a vector of the identifier of the simulated MC year.
setPlaylist does not return anything. It is used to modify the input of an Antares study.
## Not run: setSimulationPath("PATH/TO/STUDY/") # or setSimulationPathAPI( host = "http://localhost:8080", study_id = "6f98a393-155d-450f-a581-8668dc355235", token = NULL, simulation = "input" ) # augment number of MC years updateGeneralSettings(nbyears = 10) # Get the actual playlist getPlaylist() #  2 4 6 # set a new playlist setPlaylist(c(3, 5, 7)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.