Nothing
#' Is study an Antares v7 study ?
#'
#' @param opts
#' List of simulation parameters returned by the function
#' [antaresRead::setSimulationPath()]
#'
#' @return a logical, `TRUE` if study is v7 or above, `FALSE` otherwise.
#'
#' @name check-version
#'
#' @export
#'
#' @examples
#'
#' \dontrun{
#' # setSimulationPath
#'
#' is_antares_v7()
#'
#' }
#'
is_antares_v7 <- function(opts = antaresRead::simOptions()) {
assertthat::assert_that(inherits(opts, "simOptions"))
new_version <- getOption("antares.version.700", default = 700)
new_version <- as.numeric(new_version)
isTRUE(opts$antaresVersion >= new_version)
}
#' @rdname check-version
#'
#' @export
is_antares_v820 <- function(opts = antaresRead::simOptions()) {
assertthat::assert_that(inherits(opts, "simOptions"))
new_version <- getOption("antares.version.820", default = 820)
new_version <- as.numeric(new_version)
isTRUE(opts$antaresVersion >= new_version)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.