Skip to content

Commit 16c6446

Browse files
committed
Clean up PR 217 package build
1 parent 871d646 commit 16c6446

3 files changed

Lines changed: 5 additions & 164 deletions

File tree

.Rbuildignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CRAN-SUBMISSION
77
^docs$
88
docs/
99
docs/*
10+
^docs_old$
11+
^docs_old/
1012
^pkgdown$
1113
.*data_cache/
1214
R/hex_sticker.R
@@ -27,7 +29,8 @@ lastMiKTeXException
2729
^CRAN-SUBMISSION$
2830
^benchmarks/*
2931
^AI_agent_comments/*
30-
R/data_quality.R
32+
^\.claude$
33+
^\.claude/
3134
EXECUTIVE_SUMMARY.md
3235
PERFORMANCE_SUMMARY.md
3336
PR_DETAILS.md

R/cancensus.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ get_census <- function (dataset, regions, level=NA, vectors=c(), geo_format = NA
177177
# Read the data file and transform to proper data types
178178
result <- if (requireNamespace("readr", quietly = TRUE)) {
179179
# Use readr::read_csv if it's available.
180-
# When preserving suppression flags, don't convert na_strings to NA yet
181180
httr::content(response, type = "text", encoding = "UTF-8") %>%
182181
readr::read_csv(na = cancensus_na_strings,
183182
col_types = list(.default = "c"))
@@ -191,7 +190,7 @@ get_census <- function (dataset, regions, level=NA, vectors=c(), geo_format = NA
191190

192191
result <- result %>%
193192
dplyr::mutate_at(c(dplyr::intersect(names(.),c("Population","Households","Dwellings","Area (sq km)")),
194-
names(.)[grepl("^v_",names(.)) & !grepl("_flag$",names(.))]), as.num) %>%
193+
names(.)[grepl("^v_",names(.))]), as.num) %>%
195194
dplyr::mutate(Type = as.factor(.data$Type),
196195
`Region Name` = as.factor(.data$`Region Name`))
197196

R/data_quality.R

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)