ludvigla / semla

Other
47 stars 6 forks source link

Package download issue #2

Closed YangXuuu closed 9 months ago

YangXuuu commented 1 year ago

Hi

I just had a package downloading issue, when try to download using "remotes::install_github("ludvigla/semla")"

The error message turns out to be "Downloading GitHub repo ludvigla/semla@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/ludvigla/semla/tarball/HEAD' failed"

I think my internet is all fine and the this web is accessible to public, so a bit confused

ludvigla commented 1 year ago

Hi!

I just tested it in a new environment and it worked fine :-/ What platform are you running on? Maybe you can try to install it via devtools:

devtools::install_github("ludvigla/semla")

/Ludvig

YangXuuu commented 1 year ago

Thanks, now it works!

cjhong commented 10 months ago

As of 9/4/23, I have exactly the same error as YangXuuu encountered.

ludvigla commented 10 months ago

Hi there,

The installation probably fails because of a download timeout. You can try to set the timeout in R:

options(timeout=1000)

and then run:

remotes::install_github("ludvigla/semla")

If it still fails, try increasing the timeout.

Alternatively, you can clone the repo and install the package manually with devtools::build().

But for the latest release, I have added a package tarball that you could install with: remotes::install_url("https://github.com/ludvigla/semla/releases/download/v1.1.4/semla_1.1.4.tar.gz")

This is much smaller and download much faster.

/Ludvig

cjhong commented 10 months ago

Thank you so much! It works now.