From 8bef48fa008199a41cb158444ff720973295f654 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Wed, 28 Aug 2024 09:29:33 +0100 Subject: [PATCH] Download Wasm package contents as binary transfer --- R/packages.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/packages.R b/R/packages.R index 3608519..b6f8a46 100644 --- a/R/packages.R +++ b/R/packages.R @@ -282,7 +282,7 @@ download_wasm_packages <- function(appdir, destdir, package_cache, max_filesize) # Download Wasm binaries and copy to static assets dir for (file in meta$assets) { path <- fs::path(pkg_subdir, file$filename) - utils::download.file(file$url, path) + utils::download.file(file$url, path, mode = "wb") # Disallow this package if an asset is too large if (fs::file_size(path) > max_filesize) {