McMasterPandemic icon indicating copy to clipboard operation
McMasterPandemic copied to clipboard

remotes::install_github() times out with non-obvious error message

Open papsti opened this issue 2 years ago • 2 comments

i was trying to install the package with

 remotes::install_github("mac-theobio/[email protected]")

and i would get the following error

Downloading GitHub repo mac-theobio/[email protected]
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/mac-theobio/McMasterPandemic/tarball/v0.0.20.1' failed

found the solution here, which is to increase the timeout limit:

options(timeout=9999999)
remotes::install_github("mac-theobio/[email protected]")

might be worth adding a note in the README to increase the timeout option if getting the above error

papsti avatar Mar 31 '23 19:03 papsti

Thank you for tracking down the answer! Yes we will add this to the readme.

stevencarlislewalker avatar Mar 31 '23 19:03 stevencarlislewalker

I'm a little worried about compile times in general. I think this is a potential issue with the architecture of both this package and https://canmod.github.io/macpan2. Maybe we should distribute pre-compiled versions?

stevencarlislewalker avatar Apr 04 '23 14:04 stevencarlislewalker