Skip to content

Commit

Permalink
Merge pull request #1568 from fbenke-pik/develop
Browse files Browse the repository at this point in the history
add run to file name when generating nash analysis
  • Loading branch information
fbenke-pik authored Feb 20, 2024
2 parents 736edf4 + 28b375e commit e2f9d33
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 e2f9d33

Please sign in to comment.