hubverse-org / hubUtils

Utility functions for Infectious Disease Modeling Hubs
https://hubverse-org.github.io/hubUtils/
Other
6 stars 3 forks source link

Update in `hubUtils:::open_hub_dataset()` #73

Closed LucieContamin closed 1 year ago

LucieContamin commented 1 year ago

To read csv files, it seems to be necessary to have the model_id information in the input "schema" (output of create_hub_schema()

annakrystalli commented 1 year ago

Using arrow version 12.0.0

LucieContamin commented 1 year ago

Example repo: https://github.com/Infectious-Disease-Modeling-Hubs/example-complex-scenario-hub

annakrystalli commented 1 year ago

Hey @LucieContamin

I think this is fixed (it works on my machine! 🤷‍♀️😂) but let's make sure it works on your machine too 😜

Can you try:

remotes::install_github("Infectious-Disease-Modeling-Hubs/hubUtils",
                       dependencies = TRUE, ref = "val-hub-config")

Restart R

con <- connect_hub("path/to/your/hub")
con
con %>% filter(origin_date == "2021-03-07", output_type_id == 0.025) %>% collect()

to see if everything works?

annakrystalli commented 1 year ago

Works now.