Skip to content

Commit

Permalink
lint cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardMN committed Sep 19, 2021
1 parent 26cd8ad commit 9c35694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/Vietnam.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Vietnam <- R6::R6Class("Vietnam",
self$data$raw$provinces %>%
select(ncsc_region_code = id, level_1_region = name),
by = c("ncsc_region_code")) %>%
select( -ncsc_region_code ) %>%
select(-ncsc_region_code) %>%
mutate(
date = dmy(date),
cases_total = as.numeric(cases_total),
Expand All @@ -118,7 +118,7 @@ Vietnam <- R6::R6Class("Vietnam",
level_1_region = str_replace_all(level_1_region,
"TP HCM", "Hochiminh"),
) %>%
#
#
#tidyr::drop_na(date, region_name) %>%
mutate(
level_1_region = stri_trans_general(level_1_region, "latin-ascii"),
Expand Down
2 changes: 1 addition & 1 deletion R/test-DataClass.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ test_download <- function(DataClass_obj, download, snapshot_path) {
testthat::expect_s3_class(data, "data.frame")
testthat::expect_true(nrow(data) > 0)
testthat::expect_true(ncol(data) >= 2
|| typeof(data[[1]])=="list")
|| typeof(data[[1]]) == "list")
})
}
)
Expand Down

0 comments on commit 9c35694

Please sign in to comment.