mac-theobio / McMasterPandemic

SEIR+ model
GNU General Public License v3.0
20 stars 5 forks source link

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

Open papsti opened 1 year ago

papsti commented 1 year ago

i was trying to install the package with

 remotes::install_github("mac-theobio/McMasterPandemic@v0.0.20.1")

and i would get the following error

Downloading GitHub repo mac-theobio/McMasterPandemic@v0.0.20.1
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/McMasterPandemic@v0.0.20.1")

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

stevencarlislewalker commented 1 year ago

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

stevencarlislewalker commented 1 year ago

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?