Skip to content

Commit

Permalink
re-document with roxygen2 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jan 18, 2024
1 parent ee425db commit f36c85a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0
2 changes: 2 additions & 0 deletions R/compare_df_cols.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ compare_df_cols_df_maker <- function(x, class_colname = "class", strict_descript
UseMethod("compare_df_cols_df_maker")
}

#' @exportS3Method NULL
compare_df_cols_df_maker.data.frame <- function(x, class_colname = "class", strict_description) {
if (class_colname == "column_name") {
stop('`class_colname` cannot be "column_name"')
Expand All @@ -193,6 +194,7 @@ compare_df_cols_df_maker.data.frame <- function(x, class_colname = "class", stri
ret
}

#' @exportS3Method NULL
compare_df_cols_df_maker.list <- function(x, class_colname = "class", strict_description = strict_description) {
if (length(class_colname) != length(x)) {
stop("`x` and `class_colname` must be the same length.")
Expand Down
5 changes: 5 additions & 0 deletions R/convert_to_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ convert_to_datetime_helper <- function(x, ..., out_class = c("POSIXct", "Date"))
UseMethod("convert_to_datetime_helper")
}

#' @exportS3Method NULL
convert_to_datetime_helper.numeric <- function(x, ...,
date_system = "modern",
include_time = NULL,
Expand All @@ -87,10 +88,12 @@ convert_to_datetime_helper.numeric <- function(x, ...,
)
}

#' @exportS3Method NULL
convert_to_datetime_helper.factor <- function(x, ..., out_class = c("POSIXct", "Date")) {
convert_to_datetime_helper.character(as.character(x), ..., out_class = out_class)
}

#' @exportS3Method NULL
convert_to_datetime_helper.POSIXt <- function(x, ..., out_class = c("POSIXct", "Date")) {
out_class <- match.arg(out_class)
if (out_class %in% "POSIXct") {
Expand All @@ -101,6 +104,7 @@ convert_to_datetime_helper.POSIXt <- function(x, ..., out_class = c("POSIXct", "
}
}

#' @exportS3Method NULL
convert_to_datetime_helper.Date <- function(x, ..., tz = "UTC", out_class = c("POSIXct", "Date")) {
out_class <- match.arg(out_class)
if (out_class %in% "POSIXct") {
Expand All @@ -113,6 +117,7 @@ convert_to_datetime_helper.Date <- function(x, ..., tz = "UTC", out_class = c("P
ret
}

#' @exportS3Method NULL
convert_to_datetime_helper.character <- function(x, ..., tz = "UTC", character_fun = lubridate::ymd_hms, string_conversion_failure = c("error", "warning"), out_class = c("POSIXct", "Date")) {
string_conversion_failure <- match.arg(string_conversion_failure)
out_class <- match.arg(out_class)
Expand Down

0 comments on commit f36c85a

Please sign in to comment.