mglev1n / ldscr

LD Score Regression in R
https://mglev1n.github.io/ldscr/
Other
31 stars 3 forks source link

I am unable to install using commands #4

Closed SetSailAHMU closed 1 year ago

SetSailAHMU commented 1 year ago

devtools::install_github("mglev1n/ldscr") Downloading GitHub repo mglev1n/ldscr@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/mglev1n/ldscr/tarball/HEAD' failed Thank you for building the package but When I tried to install, this error occurred

liusl9727 commented 1 year ago

Hi, I've met the same problem. You can directly download this package from 'https://api.github.com/repos/mglev1n/ldscr/tarball/' and install it locally. I think this will work.

SetSailAHMU commented 1 year ago

Hi, I've met the same problem. You can directly download this package from 'https://api.github.com/repos/mglev1n/ldscr/tarball/' and install it locally. I think this will work.

Thank you for your kind advice๐Ÿ’•๐Ÿ’•๐Ÿ’•, but when I put the downloaded file into C:\Users\steams\AppData\Local\R\win-library\4.3 and renamed it "ldscr" to try to use it

library(ldscr)

'ldscr' is not a valid installed package

This error occurs and confused me

mglev1n commented 1 year ago

I've tried to replicate this issue on both mac and linux machines, without success. Re-running package tests on GitHub Actions, which includes Windows/Mac/Linux, also didn't seem to raise any issues. The package is relatively large (~200MB) because it includes LD score files - I wonder if you're running into timeout issues from the utils::download.file() call in devtools::install_github(). A couple things to try:

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.