Skip to content

Commit

Permalink
Download Wasm package contents as binary transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Aug 28, 2024
1 parent bea837d commit 8bef48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8bef48f

Please sign in to comment.