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

If one download fails, all repeat #3

Open
adamhsparks opened this issue Feb 20, 2023 · 1 comment
Open

If one download fails, all repeat #3

adamhsparks opened this issue Feb 20, 2023 · 1 comment

Comments

@adamhsparks
Copy link
Contributor

Everything was downloading and installing until one hiccuped.

In addition: Warning messages:
1: In utils::download.file(url, save_location, quiet = !verbose) :
  downloaded length 11648970 != reported length 11923364
2: In utils::download.file(url, save_location, quiet = !verbose) :
  URL 'https://mac.R-project.org/bin/darwin20/arm64/icu-71.1-darwin.20-arm64.tar.xz': Timeout of 60 seconds was reached

The installer downloaded everything once again when I restarted the process and the second time it succeeded.

Congratulations!
Xcode CLI, Gfortran, and R developer binaries have been installed successfully.

It's minor, but you might consider, if possible, checking if the process has already been run and if there are already some of these system libs available so that they aren't downloaded again.

@coatless
Copy link
Contributor

Ewk! Thanks for raising this point.

At the moment, I don't have a good solution to address this problem. Principally, we are not logging the packages downloaded through the recipes system. This complicates both restarting downloads and uninstalling the recipe binaries.

This isn't likely to be fixed in the short term as I'll need to think of a good way to store the downloaded packages in a manner similar to how install.packages() work.

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

2 participants