From 1cc92ed898950d25679c925fa4cdd97afe996a11 Mon Sep 17 00:00:00 2001 From: noriakis Date: Fri, 14 Jun 2024 13:43:30 +0900 Subject: [PATCH] Bug in overlay_raw_map fixed --- R/overlay_functions.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/overlay_functions.R b/R/overlay_functions.R index ae390df..4ce90b3 100644 --- a/R/overlay_functions.R +++ b/R/overlay_functions.R @@ -97,8 +97,9 @@ ggplot_add.overlay_raw_map <- function(object, plot, object_name) { path <- paste0(object$pid, ".png") if (!is.null(object$directory)) { path <- paste0(object$directory,"/",path) + } else { + download.file(url=url, destfile=path, mode='wb') } - download.file(url=url, destfile=path, mode='wb') } ## Load, transparent and rasterize