tests/testthat/test-readAntares_bc.R

#Copyright © 2016 RTE Réseau de transport d’électricité

context("Function readAntares (binding constraints)")

sapply(studyPathSV8, function(studyPath){
  
  #suppress for horizon warning
  suppressWarnings(opts <- setSimulationPath(studyPath))
  
  if (simOptions()$antaresVersion >= 840)
    test_that("Binding constraints importation is ok", {
      suppressWarnings(results <- readAntares(areas="all", bindingConstraints = TRUE, timeStep = "daily"))
      if (!is.null(results$bindingConstraints)) results <- results$bindingConstraints
      expect_is(results, "data.table")
    })

})

Try the antaresRead package in your browser

Any scripts or data that you put into this service are public.

antaresRead documentation built on Sept. 13, 2024, 1:12 a.m.