diff --git a/R/assets-funs.R b/R/assets-funs.R index 7168861c..35e10494 100644 --- a/R/assets-funs.R +++ b/R/assets-funs.R @@ -43,6 +43,9 @@ #' @param progress a `logical` indicating if a progress bar must be #' shown or not. Defaults to `TRUE`. #' +#' @param use_gdal a `logical` indicating if the file should be downloaded +#' by GDAL instead httr package. +#' #' @param download_fn a `function` to handle download of assets for #' each item to be downloaded. Using this function, you can change the #' hrefs for each asset, as well as the way download is done. diff --git a/man/assets_functions.Rd b/man/assets_functions.Rd index 7f37e02a..936bc29c 100644 --- a/man/assets_functions.Rd +++ b/man/assets_functions.Rd @@ -33,6 +33,7 @@ assets_download( output_dir = getwd(), overwrite = FALSE, ..., + use_gdal = FALSE, download_fn = NULL ) @@ -42,6 +43,7 @@ assets_download( output_dir = getwd(), overwrite = FALSE, ..., + use_gdal = FALSE, create_json = FALSE, download_fn = NULL ) @@ -52,6 +54,7 @@ assets_download( output_dir = getwd(), overwrite = FALSE, ..., + use_gdal = FALSE, download_fn = NULL, create_json = TRUE, items_max = Inf, @@ -64,6 +67,7 @@ assets_download( output_dir = getwd(), overwrite = FALSE, ..., + use_gdal = FALSE, create_json = FALSE, download_fn = NULL ) @@ -123,6 +127,9 @@ if FALSE, a warning message is shown.} \item{...}{additional arguments. See details.} +\item{use_gdal}{a \code{logical} indicating if the file should be downloaded +by GDAL instead httr package.} + \item{download_fn}{a \code{function} to handle download of assets for each item to be downloaded. Using this function, you can change the hrefs for each asset, as well as the way download is done.} diff --git a/man/preview_plot.Rd b/man/preview_plot.Rd index 96ead0c5..4ce4a078 100644 --- a/man/preview_plot.Rd +++ b/man/preview_plot.Rd @@ -15,5 +15,5 @@ A rastergrob grob from package \code{grid}. \description{ This is a helper function to plot preview assets (e.g. quicklook, thumbnail, rendered_preview). -Currently, only png and jpeg formats are supported. +Currently, only png, jpeg and jpg formats are supported. }