Skip to content

Commit

Permalink
fix: Quote args to OpenMalaria
Browse files Browse the repository at this point in the history
- Spaces in the directories can break the command call
  • Loading branch information
rogoersTPH authored Apr 10, 2024
1 parent b0a83cc commit 6c6affb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ runSimulations <- function(scenarios = NULL, cmd = "openMalaria", dryRun = FALSE
)
## Print current step
args <- paste0(
"--resource-path ", resources, " --scenario ", scenario, " --output ",
output, " --ctsout ", ctsout, verbose
"--resource-path \"", resources, "\" --scenario \"", scenario, "\" --output \"",
output, "\" --ctsout \"", ctsout, "\"", verbose
)
## Collect required information to run Open Malaria
cmds[[i]] <- list(
Expand Down

0 comments on commit 6c6affb

Please sign in to comment.