Skip to content

Commit

Permalink
add run to file name when generating nash analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Feb 20, 2024
1 parent 59e260b commit 28b375e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/output/single/nashAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ library(lucode2)
library(remind2)


if(!exists("outputdir")) {
#Define arguments that can be read from command line
if (!exists("outputdir")) {
# Define arguments that can be read from command line
readArgs("outputdir")
}

gdx_name <- "fulldata.gdx"
gdx <- file.path(outputdir, gdx_name)

dir_name <- tail(strsplit(outputdir, split = "/")[[1]], n = 1)

remind2::nashAnalysis(
gdx = gdx,
outputDir = outputdir
outputDir = outputdir,
outputFile = paste0("NashAnalysis_", dir_name, ".html")
)

0 comments on commit 28b375e

Please sign in to comment.