From 3d72dfb0d57a3e0c024c0b9c4de095a3e665436d Mon Sep 17 00:00:00 2001 From: Jan Philipp Dietrich Date: Wed, 18 Jan 2023 12:17:49 +0100 Subject: [PATCH] fixed bug which could cause compilation errors if the title contains a dot --- CHANGELOG.md | 2 +- scripts/start_functions.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index faf772f1ce..a725400404 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - ### fixed -- +- **scripts** make sure that `c_title` in the GAMS code is not containing dots which otherwise could lead to compilation errors ## [4.6.2] - 2023-01-12 diff --git a/scripts/start_functions.R b/scripts/start_functions.R index 8554dbdca8..285fa6c46f 100644 --- a/scripts/start_functions.R +++ b/scripts/start_functions.R @@ -242,7 +242,7 @@ start_run <- function(cfg, scenario = NULL, codeCheck = TRUE, lock_model = TRUE) cfg$info$version <- citation::read_cff("CITATION.cff")$version # Make 'title' a setglobal in gams to include it in the gdx - cfg$gms$c_title <- cfg$title + cfg$gms$c_title <- sub(".", "p", cfg$title, fixed = TRUE) rundate <- Sys.time() date <- format(rundate, "_%Y-%m-%d_%H.%M.%S")