I was working on a PR for absmaps to convert it from using a list of hardcoded URLs in an R script for downloading ABS data to using a CSV. But having a look at last week's changes to absmapsdata, it looks like you're already way ahead of me 😛
put-file-list.R generates a tibble from the directory listing and makes it available using usethis::use_data:
|
absmapsdata_file_list <- tibble(files = list.files("data") %>% |
|
stringr::str_remove("\\.rda")) |
|
|
|
usethis::use_data(absmapsdata_file_list) |
This is a great opportunity to add some further columns to help users work out what they're looking for. Some columns, like year and area, are easily extractible from the name, but perhaps there's some more scope to add other useful metadata?
I was working on a PR for
absmapsto convert it from using a list of hardcoded URLs in an R script for downloading ABS data to using a CSV. But having a look at last week's changes toabsmapsdata, it looks like you're already way ahead of me 😛put-file-list.Rgenerates a tibble from the directory listing and makes it available usingusethis::use_data:absmapsdata/data-raw/put-file-list.R
Lines 5 to 8 in c52266d
This is a great opportunity to add some further columns to help users work out what they're looking for. Some columns, like year and area, are easily extractible from the name, but perhaps there's some more scope to add other useful metadata?