Skip to content

Commit

Permalink
lint: minor newline for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Sep 6, 2023
1 parent 5e17a36 commit b37ab31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ format_list <- function(values) {
check_is_recent <- function(dates, max_age) {
(!is.null(dates) && any(dates >= format(Sys.Date() - max_age, format = "%Y%m%d")))
}

#' helper that checks whether a call is actually cachable
#'
#' @keywords internal
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-cache.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
test_that("basic cache setup", {
expect_true(is.null(cache_environ$epidatr_cache))
})

tmp_base_dir <- Sys.getenv("TMPDIR")
new_temp_dir <- NULL
if (tmp_base_dir == "") {
Expand All @@ -11,6 +12,7 @@ if (tmp_base_dir == "") {
md5(paste(Sys.time(), "I am the very model of a modern major general"))
)
}

test_set_cache <- function(cache_dir = new_temp_dir,
days = 1,
max_size = 1,
Expand Down

0 comments on commit b37ab31

Please sign in to comment.