From 1ba867bd9138c3f71716a847b0986b85715cb0db Mon Sep 17 00:00:00 2001 From: Meiert Willem Grootes <42940327+meiertgrootes@users.noreply.github.com> Date: Wed, 20 Nov 2024 23:13:48 +0100 Subject: [PATCH] Update R/valley.R Co-authored-by: Francesco Nattino <49899980+fnattino@users.noreply.github.com> --- R/valley.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/valley.R b/R/valley.R index b76dbe1..2f26f50 100644 --- a/R/valley.R +++ b/R/valley.R @@ -90,8 +90,8 @@ get_dem <- function(bb, resource="STAC",...){ #' @param output_directory where file should be written. If specified fpath is treated as filename only. #' #' @export -dem_to_COG <- function(dem,fpath,output_directory=None,){ - if (output_directory == None){ +dem_to_COG <- function(dem,fpath,output_directory=NULL,){ + if (is.null(output_directory)){ file_name = basename(fpath) directory_name = dirname(file) } else {