presagia-analytics / ctrialsgov

Query Data from ClinicalTrials.gov
https://presagia-analytics.github.io/ctrialsgov/
Other
12 stars 3 forks source link

tbl_data.Rds error? #11

Closed presagia-ww closed 1 year ago

presagia-ww commented 2 years ago

I was trying to run "ctgov_load_cache()" command after updating the package to the newest version (ctrialsgov_0.3.0). Got an error message as shown below:

ctgov_load_cache() Error in readRDS(fp) : ReadItem: unknown type 0, perhaps written by later version of R

I tried deleting the tbl_data.Rds file came with the package and got the error message below:

ctgov_load_cache() trying URL 'https://github.com/presagia-analytics/ctrialsgov/releases/download/data/tbl_data.Rds' Content type 'application/octet-stream' length 605965782 bytes (577.9 MB) downloaded 577.9 MB

Error in readRDS(fp) : ReadItem: unknown type 0, perhaps written by later version of R.

It seems tbl_data.Rds has some issues and can't be read properly.

presagia-ww commented 2 years ago

I used the RDS file created by Mike and it worked fine. So tbl_data.Rds issue is confirmed and needs to be fixed in the package. Thanks!