Skip to content

Commit

Permalink
library(stringr) removed from test-setSimulationPath.R
Browse files Browse the repository at this point in the history
  • Loading branch information
vargastat committed Sep 11, 2024
1 parent d8b62dd commit 50c3086
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export(setSimulationPathAPI)
export(setTimeoutAPI)
export(showAliases)
export(simOptions)
export(transform_antares_version)
export(viewAntares)
export(writeDigest)
import(bit64)
Expand Down Expand Up @@ -105,6 +106,8 @@ importFrom(stats,as.formula)
importFrom(stats,setNames)
importFrom(stats,weighted.mean)
importFrom(stringi,stri_replace_last_fixed)
importFrom(stringr,str_count)
importFrom(stringr,str_detect)
importFrom(stringr,str_match)
importFrom(stringr,str_replace)
importFrom(stringr,str_split)
Expand Down
2 changes: 1 addition & 1 deletion R/setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ setSimulationPath <- function(path, simulation = NULL) {
#'
#' @param antares_version Antares number version.
#'
#' @importFrom stringr str_count
#' @importFrom stringr str_count str_detect
#'
#' @export
transform_antares_version <- function(antares_version) {
Expand Down
14 changes: 14 additions & 0 deletions man/transform_antares_version.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tests/testthat/test-setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ test_that("New meta data for group dimension of binding constraints", {
expect_is(opts_study_test$binding, "data.table")
})

library(stringr)
test_that("valid versions are transformed correctly", {
expect_equal(transform_antares_version("9.0")$r, 900)
expect_equal(transform_antares_version("9.45")$r, 945)
Expand Down

0 comments on commit 50c3086

Please sign in to comment.