Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in download.file() in build_offline_repo.R #2

Open
parmsam-pfizer opened this issue Feb 22, 2024 · 0 comments
Open

Error in download.file() in build_offline_repo.R #2

parmsam-pfizer opened this issue Feb 22, 2024 · 0 comments

Comments

@parmsam-pfizer
Copy link
Contributor

parmsam-pfizer commented Feb 22, 2024

Lines 144 and 158 in build_offline_repo.R appear to use fs::path() to help build the download URLs, however on Windows the URLs are changed preventing download.

Here's what they look like:

> path(original_repo_location, "PACKAGES.rds")
https:/repo.r-wasm.org/bin/emscripten/contrib/4.3/PACKAGES.rds
> remote_package_info <- download.file(path(original_repo_location, "PACKAGES.rds"), destfile = path(full_package_path, "PACKAGES.rds"), mode = "wb")
Error in download.file(path(original_repo_location, "PACKAGES.rds"), destfile = path(full_package_path,  : 
  scheme not supported in URL 'https:/repo.r-wasm.org/bin/emscripten/contrib/4.3/PACKAGES.rds'

A simple solution would be to use file.path(original_repo_location, "PACKAGES.rds", fsep = "") for those lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant