Skip to content

Commit

Permalink
accept urls in xlsx_IIASA
Browse files Browse the repository at this point in the history
  • Loading branch information
orichters committed Sep 11, 2024
1 parent 8cf26c5 commit 7829638
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/output/export/xlsx_IIASA.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down

0 comments on commit 7829638

Please sign in to comment.