Skip to content

Commit

Permalink
Add @export tags for methods on internal S3 generics
Browse files Browse the repository at this point in the history
As reported by roxygen2
  • Loading branch information
DavisVaughan committed Jul 18, 2024
1 parent a83d676 commit 4922e73
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 1 deletion.
18 changes: 18 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,24 @@ S3method(calendar_count_between,clock_year_month_day)
S3method(calendar_count_between,clock_year_month_weekday)
S3method(calendar_count_between,clock_year_quarter_day)
S3method(calendar_count_between,clock_year_week_day)
S3method(calendar_count_between_compute,clock_iso_year_week_day)
S3method(calendar_count_between_compute,clock_year_day)
S3method(calendar_count_between_compute,clock_year_month_day)
S3method(calendar_count_between_compute,clock_year_month_weekday)
S3method(calendar_count_between_compute,clock_year_quarter_day)
S3method(calendar_count_between_compute,clock_year_week_day)
S3method(calendar_count_between_proxy_compare,clock_iso_year_week_day)
S3method(calendar_count_between_proxy_compare,clock_year_day)
S3method(calendar_count_between_proxy_compare,clock_year_month_day)
S3method(calendar_count_between_proxy_compare,clock_year_month_weekday)
S3method(calendar_count_between_proxy_compare,clock_year_quarter_day)
S3method(calendar_count_between_proxy_compare,clock_year_week_day)
S3method(calendar_count_between_standardize_precision_n,clock_iso_year_week_day)
S3method(calendar_count_between_standardize_precision_n,clock_year_day)
S3method(calendar_count_between_standardize_precision_n,clock_year_month_day)
S3method(calendar_count_between_standardize_precision_n,clock_year_month_weekday)
S3method(calendar_count_between_standardize_precision_n,clock_year_quarter_day)
S3method(calendar_count_between_standardize_precision_n,clock_year_week_day)
S3method(calendar_end,clock_calendar)
S3method(calendar_end,clock_iso_year_week_day)
S3method(calendar_end,clock_year_day)
Expand Down
3 changes: 3 additions & 0 deletions R/gregorian-year-day.R
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ calendar_count_between.clock_year_day <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_year_day <- function(x,
precision,
n) {
Expand All @@ -1073,6 +1074,7 @@ calendar_count_between_standardize_precision_n.clock_year_day <- function(x,
list(precision = precision, n = n)
}

#' @export
calendar_count_between_compute.clock_year_day <- function(start,
end,
precision) {
Expand All @@ -1087,6 +1089,7 @@ calendar_count_between_compute.clock_year_day <- function(start,
abort("Internal error: `precision` should be 'year' at this point.")
}

#' @export
calendar_count_between_proxy_compare.clock_year_day <- function(start,
end,
precision) {
Expand Down
3 changes: 3 additions & 0 deletions R/gregorian-year-month-day.R
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,7 @@ calendar_count_between.clock_year_month_day <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_year_month_day <- function(x,
precision,
n) {
Expand All @@ -1419,6 +1420,7 @@ calendar_count_between_standardize_precision_n.clock_year_month_day <- function(
list(precision = precision, n = n)
}

#' @export
calendar_count_between_compute.clock_year_month_day <- function(start,
end,
precision) {
Expand All @@ -1439,6 +1441,7 @@ calendar_count_between_compute.clock_year_month_day <- function(start,
abort("Internal error: `precision` should be 'year' or 'month' at this point.")
}

#' @export
calendar_count_between_proxy_compare.clock_year_month_day <- function(start,
end,
precision) {
Expand Down
3 changes: 3 additions & 0 deletions R/gregorian-year-month-weekday.R
Original file line number Diff line number Diff line change
Expand Up @@ -1284,18 +1284,21 @@ calendar_count_between.clock_year_month_weekday <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_year_month_weekday <- function(x,
precision,
n) {
calendar_count_between_standardize_precision_n.clock_year_month_day(x, precision, n)
}

#' @export
calendar_count_between_compute.clock_year_month_weekday <- function(start,
end,
precision) {
calendar_count_between_compute.clock_year_month_day(start, end, precision)
}

#' @export
calendar_count_between_proxy_compare.clock_year_month_weekday <- function(start,
end,
precision) {
Expand Down
3 changes: 3 additions & 0 deletions R/iso-year-week-day.R
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ calendar_count_between.clock_iso_year_week_day <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_iso_year_week_day <- function(x,
precision,
n) {
Expand All @@ -1102,6 +1103,7 @@ calendar_count_between_standardize_precision_n.clock_iso_year_week_day <- functi
list(precision = precision, n = n)
}

#' @export
calendar_count_between_compute.clock_iso_year_week_day <- function(start,
end,
precision) {
Expand All @@ -1116,6 +1118,7 @@ calendar_count_between_compute.clock_iso_year_week_day <- function(start,
abort("Internal error: `precision` should be 'year' at this point.")
}

#' @export
calendar_count_between_proxy_compare.clock_iso_year_week_day <- function(start,
end,
precision) {
Expand Down
4 changes: 3 additions & 1 deletion R/quarterly-year-quarter-day.R
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ calendar_count_between.clock_year_quarter_day <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_year_quarter_day <- function(x,
precision,
n) {
Expand All @@ -1251,6 +1252,7 @@ calendar_count_between_standardize_precision_n.clock_year_quarter_day <- functio
list(precision = precision, n = n)
}

#' @export
calendar_count_between_compute.clock_year_quarter_day <- function(start,
end,
precision) {
Expand All @@ -1271,6 +1273,7 @@ calendar_count_between_compute.clock_year_quarter_day <- function(start,
abort("Internal error: `precision` should be 'year' or 'quarter' at this point.")
}

#' @export
calendar_count_between_proxy_compare.clock_year_quarter_day <- function(start,
end,
precision) {
Expand Down Expand Up @@ -1412,4 +1415,3 @@ quarterly_validate_start <- function(start, ..., error_call = caller_env()) {

start
}

3 changes: 3 additions & 0 deletions R/week-year-week-day.R
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,7 @@ calendar_count_between.clock_year_week_day <- function(start,
NextMethod()
}

#' @export
calendar_count_between_standardize_precision_n.clock_year_week_day <- function(x,
precision,
n) {
Expand All @@ -1181,6 +1182,7 @@ calendar_count_between_standardize_precision_n.clock_year_week_day <- function(x
list(precision = precision, n = n)
}

#' @export
calendar_count_between_compute.clock_year_week_day <- function(start,
end,
precision) {
Expand All @@ -1195,6 +1197,7 @@ calendar_count_between_compute.clock_year_week_day <- function(start,
abort("Internal error: `precision` should be 'year' at this point.")
}

#' @export
calendar_count_between_proxy_compare.clock_year_week_day <- function(start,
end,
precision) {
Expand Down

0 comments on commit 4922e73

Please sign in to comment.