ArgoCanada / argodata

Download Argo Ocean Float Data
https://argocanada.github.io/argodata
Other
8 stars 3 forks source link

argodata.rdb is corrupt #3

Closed j-harbin closed 3 years ago

j-harbin commented 3 years ago

Hey Dewey!

I installed the argodata package, doing the following

library(devtools)
install_github("ArgoCanada/argodata", ref="master")

I then tried your code from https://github.com/ArgoCanada/argoFloats/issues/379 shown below:

library(argodata)
library(dplyr, warn.conflicts = F)

traj <- argo_global_traj() %>% 
    head(1)
#> Loading argo_global_traj()

traj %>% 
    argo_traj_measurement() %>%
    select(
        n_measurement, 
        longitude, 
        latitude, 
        starts_with("position"),
        measurement_code
    )

And I receive:

Error in argo_traj_measurement(.) : 
  could not find function "argo_traj_measurement"

When I look up the help docs for argo_traj_measurement, the help page says "Error in fetch(key) : lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/argodata/help/argodata.rdb' is corrupt"

Would this be specific to my laptop?

paleolimbot commented 3 years ago

My guess is that there was a failed reinstall somewhere! That or you're running an older version (it gets updated frequently these days). You could try restarting R then running remotes::install_github("ArgoCanada/argodata")

j-harbin commented 3 years ago

You were right! Once I ran remotes::install_github("ArgoCanada/argodata") it worked fine. Thanks, Dewey.