How to update internal data using use_data

72 Views Asked by At

I would like my script to access internal data that can be updated. The data will be countries visited and the date. Not a high frequency data set, so doesn't justify using a database.

These are the lines I tried:

country_vis <- bind_rows(country_vis, c(country = new_country, date = entry_date))
usethis::use_data(country_vis, internal = TRUE, overwrite = TRUE, version = 3)

the bind_rows is fine, but the data is not updated.

  1. Do I have to rebuild the package or reference an environment?
    or,
  2. Is this not a legitimate use of use_data? What would be the better way?
0

There are 0 best solutions below