MRCIEU / ieugwasr

R interface to the IEU GWAS database API
https://mrcieu.github.io/ieugwasr/
Other
72 stars 23 forks source link

[BUG]: Error in as.POSIXct.numeric(ret) : 'origin' must be supplied #103

Open JonnyBaseball opened 3 months ago

JonnyBaseball commented 3 months ago

Please make sure that this is a bug! If you have questions about how to use TwoSampleMR please use the Discussions function instead.

Describe the bug (required)

Trying to extract_outcome_data from one dataset, here is the error: Extracting data for 515 SNP(s) from 1 GWAS(s) Error in as.POSIXct.numeric(options()$ieugwasr_reset) : 'origin' must be supplied

Provide a clear and concise description of what the bug is. Not sure. I have re-installed ieugwasr and TwoSampleMR and manually set ieugwasr data-time option

Describe the current behaviour you observe (required)

Include code blocks with any error messages

Describe the behaviour you expect (required)

R code to reproduce the issue (required)

Please provide a minimal code snippet that will reproduce this issue

Contribute a solution (optional)

Please submit a pull request and/or briefly describe your proposed solution

System information

Please provide details of your operating system and R version macOS cataline, R version 4.2.0

Additional context

Add any other context about the problem here

JasonQiu commented 3 months ago

Unable to reproduce

david-ds3938 commented 10 hours ago

For me this error was because I was hitting my allowance. The Sys.sleep function (see below) is a good way to prevent the allowance issue without causing issues for OpenGWAS by messing with check_reset.

https://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.sleep.html