From 0709bbbd31c912a287c6a9dda786552c630df70c Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sat, 9 Sep 2023 22:09:14 -0300 Subject: [PATCH 1/6] update targets muni --- data_prep/R/muni_clean.R | 7 +- data_prep/R/muni_download.R | 7 +- data_prep/R/support_fun.R | 51 +++++++------- data_prep/_targets.R | 12 ++-- data_prep/_targets/meta/meta | 74 +++++++++------------ r-package/prep_data/update_metadata_table.R | 14 ++-- 6 files changed, 76 insertions(+), 89 deletions(-) diff --git a/data_prep/R/muni_clean.R b/data_prep/R/muni_clean.R index ba924754..9b82ba0f 100644 --- a/data_prep/R/muni_clean.R +++ b/data_prep/R/muni_clean.R @@ -8,13 +8,13 @@ clean_muni <- function( muni_raw_paths ){ # year = 2000 - # all_muni_raw_paths <- list.files(path = paste0('./data-raw/municipios/', year), + # all_muni_raw_paths <- list.files(path = paste0('./data_raw/municipios/', year), # pattern = '.rds', # full.names = TRUE) - # f <- all_muni_raw_paths[15] + # f <- all_muni_raw_paths[1] ## 6666 - # muni_raw_paths <- muni_raw_paths[1] + # muni_raw_paths <- all_muni_raw_paths[1] ## 6666 @@ -41,6 +41,7 @@ clean_muni <- function( muni_raw_paths ){ # read raw file temp_sf <- readRDS(f) names(temp_sf) <- tolower(names(temp_sf)) + # mapview(temp_sf) # select columns if (year %like% "2000|2001|2005") { diff --git a/data_prep/R/muni_download.R b/data_prep/R/muni_download.R index f66b2589..8a61ef14 100644 --- a/data_prep/R/muni_download.R +++ b/data_prep/R/muni_download.R @@ -2,7 +2,7 @@ # 0. Download Raw zipped files for all years --------------------------------- #' input: year #' download raw data from source website to temp zip file -#' save raw data in .rds format in the data-raw dir +#' save raw data in .rds format in the data_raw dir #' output: returns path to all raw files of that year download_muni <- function(year){ @@ -13,7 +13,7 @@ download_muni <- function(year){ ftp <- "https://geoftp.ibge.gov.br/organizacao_do_territorio/malhas_territoriais/malhas_municipais/" # create dir if it has not been created already - dest_dir <- paste0('./data-raw/municipios/', year) + dest_dir <- paste0('./data_raw/municipios/', year) if (isFALSE(dir.exists(dest_dir))) { dir.create(dest_dir, recursive = T, showWarnings = FALSE) } @@ -143,7 +143,7 @@ download_muni <- function(year){ # 1. read raw zipped file in temporary dir --------------------------------- #' input: tempfile of raw data, temp dir of raw data, dest dir to save raw data #' unzip and read raw data -#' output: save raw data in .rds format in the data-raw dir +#' output: save raw data in .rds format in the data_raw dir muni_saveraw <- function(tempf, temp_dir, dest_dir) { ## 1.1 Unzip original data @@ -159,6 +159,7 @@ muni_saveraw <- function(tempf, temp_dir, dest_dir) { year <- detect_year_from_string(tempf) year <- year[year != '2500'] year <- year[year != '0807'] + year <- year[year != '1701'] year <- year[1] # Encoding for different years diff --git a/data_prep/R/support_fun.R b/data_prep/R/support_fun.R index 05cef82f..31b7790d 100644 --- a/data_prep/R/support_fun.R +++ b/data_prep/R/support_fun.R @@ -26,32 +26,32 @@ add_state_info <- function(temp_sf, column){ # IF only the "name_state" column is present # Add code_state if (!is.null(temp_sf$code_muni) & "name_state" %in% names(temp_sf) ) { - temp_sf <- dplyr::mutate(code_state = ifelse(name_state== "Rondonia" | name_state== "Território de Rondonia" | name_state== "Territorio de Rondonia",11, - ifelse(name_state== "Acre" | name_state== "Território do Acre",12, + temp_sf <- dplyr::mutate(code_state = ifelse(name_state== "Rondonia" | name_state== "Territ\u00f3rio de Rondonia" | name_state== "Territorio de Rondonia",11, + ifelse(name_state== "Acre" | name_state== "Territ\u00f3rio do Acre",12, ifelse(name_state== "Amazonas",13, - ifelse(name_state== "Roraima" | name_state=="Território de Roraima",14, - ifelse(name_state== "Pará",15, - ifelse(name_state== "Amapá" | name_state=="Territorio do Amapa",16, + ifelse(name_state== "Roraima" | name_state=="Territ\u00f3rio de Roraima",14, + ifelse(name_state== "Par\u00e1",15, + ifelse(name_state== "Amap\u00e1" | name_state=="Territorio do Amapa",16, ifelse(name_state== "Tocantins",17, - ifelse(name_state== "Maranhão",21, + ifelse(name_state== "Maranh\u00e3o",21, ifelse(name_state== "Piaui" | name_state== "Piauhy",22, - ifelse(name_state== "Ceará",23, + ifelse(name_state== "Cear\u00e1",23, ifelse(name_state== "Rio Grande do Norte",24, ifelse(name_state== "Paraiba" | name_state== "Parahyba",25, ifelse(name_state== "Pernambuco",26, - ifelse(name_state== "Alagoas" | name_state=="Alagôas",27, + ifelse(name_state== "Alagoas" | name_state=="Alag\u00f4as",27, ifelse(name_state== "Sergipe",28, ifelse(name_state== "Bahia",29, ifelse(name_state== "Minas Gerais" | name_state== "Minas Geraes",31, ifelse(name_state== "Espirito Santo" | name_state== "Espirito Santo",32, ifelse(name_state== "Rio de Janeiro",33, - ifelse(name_state== "São Paulo",35, - ifelse(name_state== "Paraná",41, + ifelse(name_state== "S\u00e3o Paulo",35, + ifelse(name_state== "Paran\u00e1",41, ifelse(name_state== "Santa Catarina" | name_state== "Santa Catharina",42, ifelse(name_state== "Rio Grande do Sul",43, ifelse(name_state== "Mato Grosso do Sul",50, ifelse(name_state== "Mato Grosso" | name_state== "Matto Grosso",51, - ifelse(name_state== "Goiás" | name_state== "Goyaz",52, + ifelse(name_state== "Goi\u00e1s" | name_state== "Goyaz",52, ifelse((name_state== "Distrito Federal" | name_state=="Brasilia") & (year>1950),53,NA )))))))))))))))))))))))))))) } @@ -63,22 +63,22 @@ add_state_info <- function(temp_sf, column){ temp_sf$code_state <- substr( temp_sf[[ column ]] , 1,2) |> as.numeric() # # add name_state ENCODING ISSUES - # stringi::stri_encode(from='latin1', to="utf8", str= "São Paulo") + # stringi::stri_encode(from='latin1', to="utf8", str= "S\u00e3o Paulo") # stringi::stri_encode('S\u00e3o Paulo', to="UTF-8") - # gtools::ASCIIfy('São Paulo') + # gtools::ASCIIfy('S\u00e3o Paulo') temp_sf <- temp_sf |> dplyr::mutate(name_state = - data.table::fcase(code_state== 11, utf8::as_utf8("Rondônia"), + data.table::fcase(code_state== 11, "Rond\u00f4nia", code_state== 12, "Acre", code_state== 13, "Amazonas", code_state== 14, "Roraima", - code_state== 15, utf8::as_utf8("Pará"), - code_state== 16, utf8::as_utf8("Amapá"), + code_state== 15, "Par\u00e1", + code_state== 16, "Amap\u00e1", code_state== 17, "Tocantins", - code_state== 21, utf8::as_utf8("Maranhão"), - code_state== 22, utf8::as_utf8("Piauí"), - code_state== 23, utf8::as_utf8("Ceará"), + code_state== 21, "Maranh\u00e3o", + code_state== 22, "Piau\u00ed", + code_state== 23, "Cear\u00e1", code_state== 24, "Rio Grande do Norte", - code_state== 25, utf8::as_utf8("Paraíba"), + code_state== 25, "Para\u00edba", code_state== 26, "Pernambuco", code_state== 27, "Alagoas", code_state== 28, "Sergipe", @@ -86,16 +86,13 @@ add_state_info <- function(temp_sf, column){ code_state== 31, "Minas Gerais", code_state== 32, "Espirito Santo", code_state== 33, "Rio de Janeiro", - # code_state== 35, stringi::stri_encode(from='latin1', to="utf8", str="São Paulo"), - # code_state== 35, stringi::stri_escape_unicode("São Paulo"), - # OK code_state== 35, stringi::stri_encode('S\u00e3o Paulo', to="UTF-8"), - code_state== 35, utf8::as_utf8("São Paulo"), - code_state== 41, utf8::as_utf8("Paraná"), + code_state== 35, "S\u00e3o Paulo", + code_state== 41, "Paran\u00e1", code_state== 42, "Santa Catarina", code_state== 43, "Rio Grande do Sul", code_state== 50, "Mato Grosso do Sul", code_state== 51, "Mato Grosso", - code_state== 52, utf8::as_utf8("Goiás"), + code_state== 52, "Goi\u00e1s", code_state== 53, "Distrito Federal", default = NA)) } @@ -367,8 +364,6 @@ remove_state_repetition <- function(temp_sf){ } - - #####fixing municipality repetition--------- # https://github.com/ipeaGIT/geobr/blob/49534a6b19dc765e43e4c2f4404342f4fd0fdb4e/r-package/prep_data/prep_state_muni_regions.R#L987 diff --git a/data_prep/_targets.R b/data_prep/_targets.R index 4136be2d..b8b72691 100644 --- a/data_prep/_targets.R +++ b/data_prep/_targets.R @@ -69,12 +69,12 @@ list( # # 2013, 2014, 2015, 2016, 2017, # 2018, 2019, 2020, 2021, 2022)), - tar_target(years_muni, c(2000, 2001, - 2005, 2007, - 2010 , - 2013, - 2014, 2015, 2016, 2017, - 2018, 2019, 2020, + tar_target(years_muni, c(#2000, 2001, + #2005, 2007, + #2010 , + #2013, + #2014, 2015, 2016, 2017, + #2018, 2019, 2020, 2021, 2022 ) diff --git a/data_prep/_targets/meta/meta b/data_prep/_targets/meta/meta index 726e736d..0929f399 100644 --- a/data_prep/_targets/meta/meta +++ b/data_prep/_targets/meta/meta @@ -1,10 +1,33 @@ name|type|data|command|depend|seed|path|time|size|bytes|format|repository|iteration|parent|children|seconds|warnings|error -download_municipios|pattern|df3da2fb785d5d81|8fbddcf776f18690||1878787232||||2030|rds|local|vector||download_municipios_69f7f34b*download_municipios_cf4bb5dd*download_municipios_7aef1731*download_municipios_58c7c7e3*download_municipios_ecff67d9*download_municipios_61613954*download_municipios_ecc6901b*download_municipios_76e550f1*download_municipios_9f09a64e*download_municipios_2c3bdc5e*download_municipios_d23b5257*download_municipios_913df282*download_municipios_aa490a84*download_municipios_830c61d3*download_municipios_5f50960d|492.92|| +%nin%|function|c5de772db35799a7||||||||||||||| +%nlike%|function|c5de772db35799a7||||||||||||||| +add_region_info|function|5f64f9e681b038b5||||||||||||||| +add_state_info|function|73355ed710c93f81||||||||||||||| +clean_muni|function|651f77c02da54159||||||||||||||| +clean_municipios|pattern|88309d4e60dd995c|7c3241d48e59af23||-216732605||||100|rds|local|vector||clean_municipios_a52c8593*clean_municipios_261a646c|1838.02|| +clean_municipios_0debc2e3|branch|2b5abed820c07102|7c3241d48e59af23|c663c01affa8e2f6|-749263143||t19590.8707040813s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1269.78|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_0ebc9088|branch|2b5abed820c07102|7c3241d48e59af23|b15874ab5961db20|-1811339137||t19590.8865388106s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1367.78|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_1873246b|branch|ba279b273fa28d96|7c3241d48e59af23|eaa21a78a8d95aae|1529694794||t19590.9537741318s|44989414465ff33d|49|rds|local|vector|clean_municipios||2654.12|| +clean_municipios_25ed5c35|branch|ba279b273fa28d96|7c3241d48e59af23|6ac6ec313d6eb337|-361690179||t19590.9038095895s|44989414465ff33d|49|rds|local|vector|clean_municipios||1491.86|| +clean_municipios_261a646c|branch|10632104ad66a324|7c3241d48e59af23|75002ea552b4e356|-666764302||t19609.1117937305s|ba7baa2be0c9b1c9|50|rds|local|vector|clean_municipios||887|| +clean_municipios_27938ab9|branch|2b5abed820c07102|7c3241d48e59af23|1a5ff230fb34449c|665896356||t19590.8560053353s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1272.25|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_35345f30|branch|2b5abed820c07102|7c3241d48e59af23|9fd26c82462aa4be|1741621774||t19590.7971150362s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1240.84|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_5bfd20d2|branch|ba279b273fa28d96|7c3241d48e59af23|a74d7dfab9b924dc|-1491067085||t19590.9230162358s|44989414465ff33d|49|rds|local|vector|clean_municipios||1658.08|| +clean_municipios_91ef7288|branch|2b5abed820c07102|7c3241d48e59af23|03659638c511008f|1383956902||t19590.8412768006s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1362.86|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_94ef54d8|branch|2b5abed820c07102|7c3241d48e59af23|e045cc36d5d1fdd8|-51724604||t19590.8255010855s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1233.2|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +clean_municipios_a52c8593|branch|10632104ad66a324|7c3241d48e59af23|067c991e0cbeaeec|868448340||t19609.1015158266s|ba7baa2be0c9b1c9|50|rds|local|vector|clean_municipios||891.89|| +clean_municipios_b9f5fdba|branch|2b5abed820c07102|7c3241d48e59af23|ef861f06e6425568|-1927247660||t19590.8112263513s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1218.94|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| +detect_year_from_string|function|f2f91e3c972ebe12||||||||||||||| +dissolve_polygons|function|55a834af661ae1c3||||||||||||||| +download_muni|function|7a70173e915c3adb||||||||||||||| +download_municipios|pattern|301acb977b763511|8fbddcf776f18690||1878787232||||188|rds|local|vector||download_municipios_19afbe8f*download_municipios_7627caaa|431.32|| +download_municipios_19afbe8f|branch|7ee4292084168233|8fbddcf776f18690|42f00688ab9cf019|-267880559||t19609.0886935816s|31c37739d6db4300|94|rds|local|vector|download_municipios||215.81|| download_municipios_2c3bdc5e|branch|bba36b2be9cad184|8fbddcf776f18690|76708af205ddcc9b|-360646537||t19590.6326407616s|2005da2f14a67e22|98|rds|local|vector|download_municipios||27.41|| download_municipios_58c7c7e3|branch|17a7bd725b86f409|8fbddcf776f18690|5863b6cec9b52a8a|-1051363140||t19590.6302775597s|53c93953a72b96c1|178|rds|local|vector|download_municipios||12.79|| download_municipios_5f50960d|branch|4bd857b53fbd6133|8fbddcf776f18690|5d95362d0f470b2d|1609212604||t19590.6353480047s|17e1813002340629|93|rds|local|vector|download_municipios||48.7|| download_municipios_61613954|branch|47ac77f925bb9f62|8fbddcf776f18690|106701d89f23a674|789763805||t19590.6309844049s|9712f9cb4307e5f0|183|rds|local|vector|download_municipios||32.05|| download_municipios_69f7f34b|branch|3c9d0faf1f9c215e|8fbddcf776f18690|aefdadc28f11a4b1|270315978||t19590.6298059575s|fad8472ff42b9b57|176|rds|local|vector|download_municipios||18.01|| +download_municipios_7627caaa|branch|d9f0aeb2840c2036|8fbddcf776f18690|3ee599d8171c036e|-922967905||t19609.0911904441s|31c37739d6db4300|94|rds|local|vector|download_municipios||215.51|| download_municipios_76e550f1|branch|9d4ea781f539adfc|8fbddcf776f18690|cad9899c244a3576|976810899||t19590.6318869964s|2005da2f14a67e22|98|rds|local|vector|download_municipios||38.09|| download_municipios_7aef1731|branch|f13b8086a3acf15e|8fbddcf776f18690|dbfd1b24a5ebdb05|-1147346750||t19590.6301273414s|37e90c3ecba3a0b1|177|rds|local|vector|download_municipios||14.25|| download_municipios_830c61d3|branch|38eac909116c6ee2|8fbddcf776f18690|dda6be1ab69dea7c|-835523159||t19590.6347787754s|17e1813002340629|93|rds|local|vector|download_municipios||53.31|| @@ -15,50 +38,13 @@ download_municipios_cf4bb5dd|branch|613625a6e5a320c7|8fbddcf776f18690|db82a848d3 download_municipios_d23b5257|branch|aa5a2081b9489d6e|8fbddcf776f18690|9837c3268996e57b|-108625475||t19590.6330860184s|2005da2f14a67e22|98|rds|local|vector|download_municipios||38.18|| download_municipios_ecc6901b|branch|a1cc7d247f0f8ba8|8fbddcf776f18690|51de7e85c11490b4|741089686||t19590.6314441719s|9712f9cb4307e5f0|183|rds|local|vector|download_municipios||39.37|| download_municipios_ecff67d9|branch|f6ba1d5ae2018bb9|8fbddcf776f18690|a183460c1725313b|-763594496||t19590.6306104866s|9712f9cb4307e5f0|183|rds|local|vector|download_municipios||28.61|| -years_muni|stem|5c9f9076020a78a3|9531f55c1e7caf73|a3dad144c40657ed|1766695622||t19590.6295953389s|8fcb0666863d3c08|92|rds|local|vector||years_muni_75dbed4f*years_muni_2d4b10ce*years_muni_61addc91*years_muni_c248884e*years_muni_39966d4c*years_muni_fbf27658*years_muni_113d37af*years_muni_976fe269*years_muni_2c488011*years_muni_e361184a*years_muni_5bedb380*years_muni_eb3c9564*years_muni_6ae75267*years_muni_e9f3f5e3*years_muni_8b29a838|0.89|| -list_folders|function|175b362a48197f48||||||||||||||| fix_topoly|function|52e4f644d5e32a9a||||||||||||||| -snake_case_names|function|5ad10201ea58836a||||||||||||||| -%nin%|function|c5de772db35799a7||||||||||||||| -add_region_info|function|5f64f9e681b038b5||||||||||||||| -add_state_info|function|c6e12f21a5c23a8a||||||||||||||| -detect_year_from_string|function|f2f91e3c972ebe12||||||||||||||| harmonize_projection|function|503da60e94c9a977||||||||||||||| -to_multipolygon|function|ee2af855f7cfa164||||||||||||||| -use_encoding_utf8|function|019254b473e5289b||||||||||||||| -%nlike%|function|c5de772db35799a7||||||||||||||| +list_folders|function|175b362a48197f48||||||||||||||| +muni_saveraw|function|1eebe197c94ece47||||||||||||||| remove_state_repetition|function|d562e5f291909d8a||||||||||||||| simplify_temp_sf|function|3d0d2dd261c5fdb3||||||||||||||| -muni_saveraw|function|cc3c25308aaf498f||||||||||||||| -dissolve_polygons|function|55a834af661ae1c3||||||||||||||| -clean_muni|function|2f6ee543053d6905||||||||||||||| -download_muni|function|931b6cfbd65a2d97||||||||||||||| -clean_municipios_35345f30|branch|2b5abed820c07102|7c3241d48e59af23|2e4d9b239e458610|1741621774||t19590.7634966804s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1276.33|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_b9f5fdba|branch|2b5abed820c07102|7c3241d48e59af23|ea2f5a5108f68adf|-1927247660||t19590.7785421556s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1299.69|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -list_folders|function|175b362a48197f48 -fix_topoly|function|52e4f644d5e32a9a -snake_case_names|function|5ad10201ea58836a -%nin%|function|c5de772db35799a7 -add_region_info|function|5f64f9e681b038b5 -add_state_info|function|c6e12f21a5c23a8a -detect_year_from_string|function|f2f91e3c972ebe12 -harmonize_projection|function|503da60e94c9a977 -to_multipolygon|function|ee2af855f7cfa164 -use_encoding_utf8|function|019254b473e5289b -%nlike%|function|c5de772db35799a7 -remove_state_repetition|function|d562e5f291909d8a -simplify_temp_sf|function|3d0d2dd261c5fdb3 -muni_saveraw|function|cc3c25308aaf498f -dissolve_polygons|function|55a834af661ae1c3 -clean_muni|function|aad07fb6a0e12e29 -download_muni|function|931b6cfbd65a2d97 -clean_municipios_35345f30|branch|2b5abed820c07102|7c3241d48e59af23|9fd26c82462aa4be|1741621774||t19590.7971150362s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1240.84|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_b9f5fdba|branch|2b5abed820c07102|7c3241d48e59af23|ef861f06e6425568|-1927247660||t19590.8112263513s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1218.94|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_94ef54d8|branch|2b5abed820c07102|7c3241d48e59af23|e045cc36d5d1fdd8|-51724604||t19590.8255010855s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1233.2|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_91ef7288|branch|2b5abed820c07102|7c3241d48e59af23|03659638c511008f|1383956902||t19590.8412768006s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1362.86|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_27938ab9|branch|2b5abed820c07102|7c3241d48e59af23|1a5ff230fb34449c|665896356||t19590.8560053353s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1272.25|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_0debc2e3|branch|2b5abed820c07102|7c3241d48e59af23|c663c01affa8e2f6|-749263143||t19590.8707040813s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1269.78|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_0ebc9088|branch|2b5abed820c07102|7c3241d48e59af23|b15874ab5961db20|-1811339137||t19590.8865388106s|b6d2e014b07bc296|51|rds|local|vector|clean_municipios||1367.78|x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.. x is already of type POLYGON.| -clean_municipios_25ed5c35|branch|ba279b273fa28d96|7c3241d48e59af23|6ac6ec313d6eb337|-361690179||t19590.9038095895s|44989414465ff33d|49|rds|local|vector|clean_municipios||1491.86|| -clean_municipios_5bfd20d2|branch|ba279b273fa28d96|7c3241d48e59af23|a74d7dfab9b924dc|-1491067085||t19590.9230162358s|44989414465ff33d|49|rds|local|vector|clean_municipios||1658.08|| -clean_municipios_1873246b|branch|ba279b273fa28d96|7c3241d48e59af23|eaa21a78a8d95aae|1529694794||t19590.9537741318s|44989414465ff33d|49|rds|local|vector|clean_municipios||2654.12|| +snake_case_names|function|5ad10201ea58836a||||||||||||||| +to_multipolygon|function|ee2af855f7cfa164||||||||||||||| +use_encoding_utf8|function|019254b473e5289b||||||||||||||| +years_muni|stem|b9558a427a1973ff|dbf598daa2ed4d34|a3dad144c40657ed|1766695622||t19608.992988981s|7db3a3265500c98f|59|rds|local|vector||years_muni_437fa18e*years_muni_0b4511ba|1.77|GEOS versions differ lwgeom has 3.9.1 sf has 3.10.2| diff --git a/r-package/prep_data/update_metadata_table.R b/r-package/prep_data/update_metadata_table.R index ff33ae9e..6fb88c51 100644 --- a/r-package/prep_data/update_metadata_table.R +++ b/r-package/prep_data/update_metadata_table.R @@ -93,17 +93,20 @@ pb_new_release("ipeaGIT/geobr", # head(metadata) - + metadata[geo=='municipality' & year==2022] ######### Step 3 - upload data to github ---------------------- all_files <- list.files("//storage1/geobr/data_gpkg", full.names = T, recursive = T) + all_files <- all_files[all_files %like% 'municipality'] + all_files <- all_files[all_files %like% '2021|2022'] + # upload data -piggyback::pb_upload(all_files[3082:length(all_files)], +piggyback::pb_upload(all_files, "ipeaGIT/geobr", - "v1.7.0") - + "v1.7.0", + .token = ttt) #' https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting @@ -170,7 +173,8 @@ setcolorder(metadata, c("geo", "year", "code", "download_path", "code_abbrev")) # upload updated metadata table github piggyback::pb_upload("//storage1/geobr/metadata/metadata_1.7.0_gpkg.csv", "ipeaGIT/geobr", - "v1.7.0") + "v1.7.0", + .token = ttt) From 46fc855babd4e55b40411ec59f998c3083574d22 Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sat, 9 Sep 2023 22:10:45 -0300 Subject: [PATCH 2/6] temporarily suspend R checks on macOS-latest, r: 'oldrel --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 228c00ba..f589d017 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -31,7 +31,7 @@ jobs: - {os: windows-latest, r: 'release'} - {os: windows-latest, r: 'oldrel'} - {os: macOS-latest, r: 'release'} - - {os: macOS-latest, r: 'oldrel'} + # - {os: macOS-latest, r: 'oldrel'} - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} From 24fe254bc858f19e72e4b69255d9d265497296b6 Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sun, 10 Sep 2023 11:13:41 -0300 Subject: [PATCH 3/6] fix topology --- data_prep/R/muni_clean.R | 11 ++++++----- data_prep/R/support_fun.R | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/data_prep/R/muni_clean.R b/data_prep/R/muni_clean.R index 9b82ba0f..d538b9b5 100644 --- a/data_prep/R/muni_clean.R +++ b/data_prep/R/muni_clean.R @@ -7,15 +7,15 @@ #' output: save clean data as geopackage clean_muni <- function( muni_raw_paths ){ - # year = 2000 + # year = 2021 # all_muni_raw_paths <- list.files(path = paste0('./data_raw/municipios/', year), # pattern = '.rds', # full.names = TRUE) # f <- all_muni_raw_paths[1] - - ## 6666 + # + # # 6666 # muni_raw_paths <- all_muni_raw_paths[1] - ## 6666 + # # 6666 # detect corresponding year of files @@ -109,7 +109,8 @@ clean_muni <- function( muni_raw_paths ){ # Make any invalid geom valid # st_is_valid( temp_sf) - temp_sf <- fix_topoly(temp_sf) + temp_sf2 <- fix_topoly(temp_sf) + # mapview(temp_sf2) # strange error in SC 2000 but it could happen elsewhere # remove geometries with area == 0 diff --git a/data_prep/R/support_fun.R b/data_prep/R/support_fun.R index 31b7790d..f4f2b042 100644 --- a/data_prep/R/support_fun.R +++ b/data_prep/R/support_fun.R @@ -273,7 +273,7 @@ to_multipolygon <- function(temp_sf){ fix_topoly <- function(temp_sf){ temp_sf <- sf::st_make_valid(temp_sf) - temp_sf <- sf::st_buffer(temp_sf, dist = 0) + # temp_sf <- sf::st_buffer(temp_sf, dist = 0) return(temp_sf) } From f36db4eb005d730b4942c68d909e9137f6182d5c Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sun, 10 Sep 2023 11:14:49 -0300 Subject: [PATCH 4/6] ignore targets meta --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e2b948e6..54098000 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ /data-raw/ data_prep/data data_prep/data-raw - +data_prep/_targets inst/doc Meta From 75014459310bc51373a953a03e006492268446c3 Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sun, 10 Sep 2023 11:17:18 -0300 Subject: [PATCH 5/6] update gitignore --- .gitignore | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 54098000..ff07c5a5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,10 @@ /r-package/.Rhistory /prep_data/.Rhistory /data-raw/ -data_prep/data -data_prep/data-raw -data_prep/_targets +/data_prep/data +/data_prep/data-raw +/data_prep/_targets +/data_prep/_targets/meta inst/doc Meta From 8222e1675984cc0e91b6480a31432362b072c383 Mon Sep 17 00:00:00 2001 From: rafapereirabr Date: Sun, 10 Sep 2023 19:27:48 -0300 Subject: [PATCH 6/6] update gitignore --- .gitignore | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ff07c5a5..5d1ed3ec 100644 --- a/.gitignore +++ b/.gitignore @@ -18,10 +18,9 @@ /r-package/.Rhistory /prep_data/.Rhistory /data-raw/ -/data_prep/data -/data_prep/data-raw -/data_prep/_targets -/data_prep/_targets/meta +/data_prep/data$ +/data_prep/data-raw$ +/data_prep/_targets$ inst/doc Meta