Skip to content

Commit

Permalink
setSimulationPath() delete getwd() to choose dir in windows (cran p…
Browse files Browse the repository at this point in the history
…olicie)
  • Loading branch information
berthetclement committed Aug 29, 2024
1 parent b46bf9b commit 54f897d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ setSimulationPath <- function(path, simulation = NULL) {
if (missing(path)) {
if (exists("choose.dir", getNamespace("utils"))) {
# choose.dir is defined only on Windows
path <- utils::choose.dir(getwd(), "Select an Antares simulation directory")
path <- utils::choose.dir("./", "Select an Antares simulation directory")

Check warning on line 188 in R/setSimulationPath.R

View check run for this annotation

Codecov / codecov/patch

R/setSimulationPath.R#L188

Added line #L188 was not covered by tests
if (is.na(path)) stop("You have canceled the execution.")
} else {
stop("Please specify a path to an Antares simulation")
Expand Down

0 comments on commit 54f897d

Please sign in to comment.