From 7829638c47479c6c38c1aec7892e0c2ab4e5a102 Mon Sep 17 00:00:00 2001 From: orichters Date: Wed, 11 Sep 2024 16:14:13 +0200 Subject: [PATCH] accept urls in xlsx_IIASA --- scripts/output/export/xlsx_IIASA.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/output/export/xlsx_IIASA.R b/scripts/output/export/xlsx_IIASA.R index c4c3d4e9b..743ca297d 100644 --- a/scripts/output/export/xlsx_IIASA.R +++ b/scripts/output/export/xlsx_IIASA.R @@ -73,7 +73,8 @@ if (is.null(mapping)) { if (length(mapping) == 0 || ! all(file.exists(mapping) | mapping %in% names(mappingNames()))) { stop("mapping='", paste(mapping, collapse = ", "), "' not found.") } -if (exists("iiasatemplate") && ! is.null(iiasatemplate) && ! file.exists(iiasatemplate)) { +if (exists("iiasatemplate") && ! is.null(iiasatemplate) && ! file.exists(iiasatemplate) && + ! grepl("^https:\\/\\/files\\.ece\\.iiasa\\.ac\\.at\\/.*\\.xlsx$", iiasatemplate)) { stop("iiasatemplate=", iiasatemplate, " not found.") }