Skip to content

Commit

Permalink
Fix pipeline failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rammprasad committed Jun 18, 2024
1 parent a4fa80b commit a86e4a9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ linters: linters_with_defaults(
redundant_ifelse_linter(),
sprintf_linter(),
strings_as_factors_linter(),
undesirable_function_linter(c(Sys.setenv = NA_character_, mapply = NA_character_))
undesirable_function_linter(c(Sys.setenv = NA_character_, mapply = NA_character_)),
object_name_linter = NULL,
object_usage_linter = NULL
)
encoding: "UTF-8"
4 changes: 2 additions & 2 deletions R/derive_blfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#'
dtc_datepart <- function(dtc, partial_as_na = TRUE) {
# Assert that dtc is a character vector
checkmate::assert_character(dtc)
admiraldev::assert_character_vector(dtc)

# Extract date part from ISO 8601 date/time variable
dt <- sub("^([^T]+).*", "\\1", dtc)
Expand Down Expand Up @@ -83,7 +83,7 @@ dtc_datepart <- function(dtc, partial_as_na = TRUE) {
#'
dtc_timepart <- function(dtc, partial_as_na = TRUE, ignore_seconds = TRUE) {
# Assert that dtc is a character vector
checkmate::assert_character(dtc)
admiraldev::assert_character_vector(dtc)

# Determine length of time part depending on ignore_seconds parameter
tm_length <- ifelse(ignore_seconds, 5L, 8L)
Expand Down
51 changes: 28 additions & 23 deletions man/derive_blfl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/dtc_datepart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/dtc_timepart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a86e4a9

Please sign in to comment.