From e68f47b85a72a3e99c92e7e0fea708fb61f83e39 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 6 Apr 2026 07:39:27 -0500 Subject: [PATCH 1/3] Re-document with dev roxygen2 --- DESCRIPTION | 2 +- man/Date-arithmetic.Rd | 2 +- man/as_date_time.Rd | 2 +- man/clock-arithmetic.Rd | 2 +- man/clock-package.Rd | 5 +++++ man/date_build.Rd | 2 +- man/date_time_build.Rd | 2 +- man/duration-arithmetic.Rd | 2 +- man/iso-year-week-day-arithmetic.Rd | 2 +- man/iso_year_week_day.Rd | 2 +- man/posixt-arithmetic.Rd | 2 +- man/reexports.Rd | 2 +- man/time-point-arithmetic.Rd | 2 +- man/weekday-arithmetic.Rd | 2 +- man/year-day-arithmetic.Rd | 2 +- man/year-month-day-arithmetic.Rd | 2 +- man/year-month-weekday-arithmetic.Rd | 2 +- man/year-quarter-day-arithmetic.Rd | 2 +- man/year-week-day-arithmetic.Rd | 2 +- man/year_day.Rd | 2 +- man/year_month_day.Rd | 2 +- man/year_month_weekday.Rd | 2 +- man/year_quarter_day.Rd | 2 +- man/year_week_day.Rd | 2 +- 24 files changed, 28 insertions(+), 23 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 98c2fb97..48a3ab76 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -44,4 +44,4 @@ Config/testthat/edition: 3 Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3.9000 diff --git a/man/Date-arithmetic.Rd b/man/Date-arithmetic.Rd index e62ffd61..d8ac915f 100644 --- a/man/Date-arithmetic.Rd +++ b/man/Date-arithmetic.Rd @@ -91,7 +91,7 @@ Adding a single quarter with \code{add_quarters()} is equivalent to adding 3 months. \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Only calendrical based arithmetic has the potential to generate invalid dates. Time point based arithmetic, like adding days, will always generate diff --git a/man/as_date_time.Rd b/man/as_date_time.Rd index 9726cf76..227da911 100644 --- a/man/as_date_time.Rd +++ b/man/as_date_time.Rd @@ -118,7 +118,7 @@ explicitly supplying \code{nonexistent} or \code{ambiguous}. This is not a drop-in replacement for \code{as.POSIXct()}, as it only converts a limited set of types to POSIXct. For parsing characters as date-times, see \code{\link[=date_time_parse]{date_time_parse()}}. For converting numerics to date-times, see -\code{\link[vctrs:new_date]{vctrs::new_datetime()}} or continue to use \code{as.POSIXct()}. +\code{\link[vctrs:new_datetime]{vctrs::new_datetime()}} or continue to use \code{as.POSIXct()}. } \examples{ x <- as.Date("2019-01-01") diff --git a/man/clock-arithmetic.Rd b/man/clock-arithmetic.Rd index c1a0d9d8..5fb0abbd 100644 --- a/man/clock-arithmetic.Rd +++ b/man/clock-arithmetic.Rd @@ -98,7 +98,7 @@ native R date or date-time type: } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Months and years are considered "irregular" because some months have more days then others (28, 29, 30, or 31), and some years have more days than diff --git a/man/clock-package.Rd b/man/clock-package.Rd index 38167e50..b6c46807 100644 --- a/man/clock-package.Rd +++ b/man/clock-package.Rd @@ -22,6 +22,11 @@ Useful links: \author{ \strong{Maintainer}: Davis Vaughan \email{davis@posit.co} +Authors: +\itemize{ + \item Davis Vaughan \email{davis@posit.co} +} + Other contributors: \itemize{ \item Posit Software, PBC [copyright holder, funder] diff --git a/man/date_build.Rd b/man/date_build.Rd index 28054298..19e0cd5a 100644 --- a/man/date_build.Rd +++ b/man/date_build.Rd @@ -58,7 +58,7 @@ A Date. } \details{ Components are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ date_build(2019) diff --git a/man/date_time_build.Rd b/man/date_time_build.Rd index 7b08ed7c..b28b3034 100644 --- a/man/date_time_build.Rd +++ b/man/date_time_build.Rd @@ -150,7 +150,7 @@ To build a POSIXct, it is required that you specify the \code{zone}. } \details{ Components are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ # The zone argument is required! diff --git a/man/duration-arithmetic.Rd b/man/duration-arithmetic.Rd index 1e062c06..8c3d6f8d 100644 --- a/man/duration-arithmetic.Rd +++ b/man/duration-arithmetic.Rd @@ -85,7 +85,7 @@ add a chronological duration to a calendrical duration documentation on the \link[=duration-helper]{duration helper} page. \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- duration_seconds(5) diff --git a/man/iso-year-week-day-arithmetic.Rd b/man/iso-year-week-day-arithmetic.Rd index 9c594193..977dd51d 100644 --- a/man/iso-year-week-day-arithmetic.Rd +++ b/man/iso-year-week-day-arithmetic.Rd @@ -40,7 +40,7 @@ undefined, as the 53rd ISO week of 2019 doesn't exist to begin with. } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- iso_year_week_day(2019, 1, 1) diff --git a/man/iso_year_week_day.Rd b/man/iso_year_week_day.Rd index 16ac977a..c369eb0a 100644 --- a/man/iso_year_week_day.Rd +++ b/man/iso_year_week_day.Rd @@ -71,7 +71,7 @@ and week day. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. diff --git a/man/posixt-arithmetic.Rd b/man/posixt-arithmetic.Rd index a347bfe4..4ccde349 100644 --- a/man/posixt-arithmetic.Rd +++ b/man/posixt-arithmetic.Rd @@ -170,7 +170,7 @@ Adding a single quarter with \code{add_quarters()} is equivalent to adding 3 months. \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Calendrical based arithmetic has the potential to generate invalid dates (like the 31st of February), nonexistent times (due to daylight saving diff --git a/man/reexports.Rd b/man/reexports.Rd index 338effb6..6db2c7f6 100644 --- a/man/reexports.Rd +++ b/man/reexports.Rd @@ -12,6 +12,6 @@ These objects are imported from other packages. Follow the links below to see their documentation. \describe{ - \item{tzdb}{\code{\link[tzdb]{tzdb_names}}, \code{\link[tzdb]{tzdb_version}}} + \item{tzdb}{\code{\link[tzdb:tzdb_names]{tzdb_names()}}, \code{\link[tzdb:tzdb_version]{tzdb_version()}}} }} diff --git a/man/time-point-arithmetic.Rd b/man/time-point-arithmetic.Rd index e05f731f..f3d98d9f 100644 --- a/man/time-point-arithmetic.Rd +++ b/man/time-point-arithmetic.Rd @@ -73,7 +73,7 @@ or years, convert to a calendar type with a converter like } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ library(magrittr) diff --git a/man/weekday-arithmetic.Rd b/man/weekday-arithmetic.Rd index a65c1f09..6989309b 100644 --- a/man/weekday-arithmetic.Rd +++ b/man/weekday-arithmetic.Rd @@ -36,7 +36,7 @@ usage. } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ saturday <- weekday(clock_weekdays$saturday) diff --git a/man/year-day-arithmetic.Rd b/man/year-day-arithmetic.Rd index 75eaf71e..0678bd24 100644 --- a/man/year-day-arithmetic.Rd +++ b/man/year-day-arithmetic.Rd @@ -36,7 +36,7 @@ first convert to a time point with \code{\link[=as_naive_time]{as_naive_time()}} } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- year_day(2019, 10) diff --git a/man/year-month-day-arithmetic.Rd b/man/year-month-day-arithmetic.Rd index b6973700..19c8d8e5 100644 --- a/man/year-month-day-arithmetic.Rd +++ b/man/year-month-day-arithmetic.Rd @@ -47,7 +47,7 @@ Adding a single quarter with \code{add_quarters()} is equivalent to adding 3 months. \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- year_month_day(2019, 1, 1) diff --git a/man/year-month-weekday-arithmetic.Rd b/man/year-month-weekday-arithmetic.Rd index f622c942..e2ac781a 100644 --- a/man/year-month-weekday-arithmetic.Rd +++ b/man/year-month-weekday-arithmetic.Rd @@ -48,7 +48,7 @@ Adding a single quarter with \code{add_quarters()} is equivalent to adding 3 months. \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ # 2nd Friday in January, 2019 diff --git a/man/year-quarter-day-arithmetic.Rd b/man/year-quarter-day-arithmetic.Rd index 1ad7fb6c..cbedce12 100644 --- a/man/year-quarter-day-arithmetic.Rd +++ b/man/year-quarter-day-arithmetic.Rd @@ -41,7 +41,7 @@ arithmetic, first convert to a time point with \code{\link[=as_naive_time]{as_na } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- year_quarter_day(2019, 1:3) diff --git a/man/year-week-day-arithmetic.Rd b/man/year-week-day-arithmetic.Rd index d3217aa0..fffdda4b 100644 --- a/man/year-week-day-arithmetic.Rd +++ b/man/year-week-day-arithmetic.Rd @@ -40,7 +40,7 @@ would be undefined. } \details{ \code{x} and \code{n} are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. } \examples{ x <- year_week_day(2019, 1, 1) diff --git a/man/year_day.Rd b/man/year_day.Rd index 55bf49d5..8f723e52 100644 --- a/man/year_day.Rd +++ b/man/year_day.Rd @@ -63,7 +63,7 @@ year and day of the year. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. diff --git a/man/year_month_day.Rd b/man/year_month_day.Rd index 14d64ee1..88e5accb 100644 --- a/man/year_month_day.Rd +++ b/man/year_month_day.Rd @@ -70,7 +70,7 @@ Gregorian year, month, day, and time of day components. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. diff --git a/man/year_month_weekday.Rd b/man/year_month_weekday.Rd index 24c0d3c0..0b34747e 100644 --- a/man/year_month_weekday.Rd +++ b/man/year_month_weekday.Rd @@ -79,7 +79,7 @@ of the month. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. diff --git a/man/year_quarter_day.Rd b/man/year_quarter_day.Rd index da4fe6c2..b84b8e26 100644 --- a/man/year_quarter_day.Rd +++ b/man/year_quarter_day.Rd @@ -78,7 +78,7 @@ month the fiscal year \code{start}s in. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. diff --git a/man/year_week_day.Rd b/man/year_week_day.Rd index be9df8c6..c8a6c17f 100644 --- a/man/year_week_day.Rd +++ b/man/year_week_day.Rd @@ -86,7 +86,7 @@ week-based data. } \details{ Fields are recycled against each other using -\link[vctrs:theory-faq-recycling]{tidyverse recycling rules}. +\link[vctrs:vector_recycling_rules]{tidyverse recycling rules}. Fields are collected in order until the first \code{NULL} field is located. No fields after the first \code{NULL} field are used. From bb193706e8a6046255446dfc2277175c513b9363 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 6 Apr 2026 07:52:21 -0500 Subject: [PATCH 2/3] Use doclisting to generate links --- DESCRIPTION | 3 ++ R/date.R | 63 +++++++++--------------------- man/date-and-date-time-boundary.Rd | 7 ++-- man/date-and-date-time-rounding.Rd | 6 +-- man/date-and-date-time-shifting.Rd | 6 +-- man/date_count_between.Rd | 6 +-- man/date_format.Rd | 7 ++-- man/date_group.Rd | 9 ++--- man/date_seq.Rd | 8 ++-- 9 files changed, 43 insertions(+), 72 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 48a3ab76..ce58bc33 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -24,6 +24,7 @@ Imports: vctrs (>= 0.6.5) Suggests: covr, + doclisting (>= 0.0.0.9000), knitr, magrittr, pillar, @@ -45,3 +46,5 @@ Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3.9000 +Remotes: + r-lib/doclisting diff --git a/R/date.R b/R/date.R index ed6fa5b4..f4ce880b 100644 --- a/R/date.R +++ b/R/date.R @@ -521,13 +521,10 @@ add_date_duration_time_point <- function(x, n, add_fn) { #' #' @description #' `date_group()` groups by a single component of a date-time, such as month -#' of the year, or day of the month. -#' -#' There are separate help pages for grouping dates and date-times: -#' -#' - [dates (Date)][date-group] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-group] +#' of the year, or day of the month. It is an S3 generic with built-in +#' methods: +#' +#' `R doclisting::methods_list("date_group")` #' #' @inheritParams calendar_group #' @@ -650,11 +647,8 @@ date_leap_year.Date <- function(x) { #' - `date_round()` rounds up or down depending on what is closer, #' rounding up on ties. #' -#' There are separate help pages for rounding dates and date-times: -#' -#' - [dates (Date)][date-rounding] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-rounding] +#' They are all S3 generics with built-in methods for: +#' `r doclisting::methods_list("date_floor")` #' #' These functions round the underlying duration itself, relative to an #' `origin`. For example, rounding to 15 hours will construct groups of @@ -950,13 +944,9 @@ date_month_factor <- function(x, ..., labels = "en", abbreviate = FALSE) { #' #' @description #' `date_format()` formats a date (Date) or date-time (POSIXct/POSIXlt) using -#' a `format` string. -#' -#' There are separate help pages for formatting dates and date-times: -#' -#' - [dates (Date)][date-formatting] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-formatting] +#' a `format` string. This is an S3 generic with built-in methods for: +#' +#' `r doclisting::methods_list("date_format")` #' #' @inheritParams rlang::args_dots_empty #' @@ -1109,12 +1099,9 @@ date_parse <- function(x, ..., format = NULL, locale = clock_locale()) { #' `date_shift()` shifts `x` to the `target` weekday. You can shift to the next #' or previous weekday. If `x` is currently on the `target` weekday, you can #' choose to leave it alone or advance it to the next instance of the `target`. -#' -#' There are separate help pages for shifting dates and date-times: -#' -#' - [dates (Date)][date-shifting] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-shifting] +#' +#' It is an S3 generic with built-in methods for: +#' `r doclisting::methods_list("date_shift")` #' #' @inheritParams time_point_shift #' @@ -1300,12 +1287,8 @@ date_today <- function(zone) { #' - `date_end()` computes the date at the end of a particular #' `precision`, such as the "end of the month". #' -#' There are separate help pages for computing boundaries for dates and -#' date-times: -#' -#' - [dates (Date)][date-boundary] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-boundary] +#' They are both S3 generics with built-in methods for: +#' `r doclisting::methods_list("date_start")` #' #' @inheritParams date_group #' @@ -1412,13 +1395,8 @@ date_end.Date <- function(x, precision, ..., invalid = NULL) { #' #' @description #' `date_seq()` generates a date (Date) or date-time (POSIXct/POSIXlt) sequence. -#' -#' There are separate help pages for generating sequences for dates and -#' date-times: -#' -#' - [dates (Date)][date-sequence] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-sequence] +#' It is an S3 generic with built-in methods for: +#' `r doclisting::methods_list("date_seq")` #' #' @inheritParams rlang::args_dots_empty #' @@ -1903,12 +1881,9 @@ date_spanning_seq.Date <- function(x) { #' #' This is suitable for, say, computing the whole number of years or months #' between two dates, accounting for the day and time of day. -#' -#' There are separate help pages for counting for dates and date-times: -#' -#' - [dates (Date)][date-count-between] -#' -#' - [date-times (POSIXct/POSIXlt)][posixt-count-between] +#' +#' It is an S3 generic with built-in methods for: +#' `r doclisting::methods_list("date_count_between")` #' #' @inheritSection calendar_count_between Comparison Direction #' diff --git a/man/date-and-date-time-boundary.Rd b/man/date-and-date-time-boundary.Rd index 242060ce..ab156dd7 100644 --- a/man/date-and-date-time-boundary.Rd +++ b/man/date-and-date-time-boundary.Rd @@ -32,11 +32,10 @@ A precision. Allowed precisions are dependent on the input used.} \code{precision}, such as the "end of the month". } -There are separate help pages for computing boundaries for dates and -date-times: +They are both S3 generics with built-in methods for: \itemize{ -\item \link[=date-boundary]{dates (Date)} -\item \link[=posixt-boundary]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-boundary]{Date}} +\item \code{\link[=posixt-boundary]{POSIXt}} } } \examples{ diff --git a/man/date-and-date-time-rounding.Rd b/man/date-and-date-time-rounding.Rd index cb46927b..e01cd120 100644 --- a/man/date-and-date-time-rounding.Rd +++ b/man/date-and-date-time-rounding.Rd @@ -46,10 +46,10 @@ the specified \code{precision}. rounding up on ties. } -There are separate help pages for rounding dates and date-times: +They are all S3 generics with built-in methods for: \itemize{ -\item \link[=date-rounding]{dates (Date)} -\item \link[=posixt-rounding]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-rounding]{Date}} +\item \code{\link[=posixt-rounding]{POSIXt}} } These functions round the underlying duration itself, relative to an diff --git a/man/date-and-date-time-shifting.Rd b/man/date-and-date-time-shifting.Rd index 9314d6ea..011bb241 100644 --- a/man/date-and-date-time-shifting.Rd +++ b/man/date-and-date-time-shifting.Rd @@ -45,10 +45,10 @@ anyways. or previous weekday. If \code{x} is currently on the \code{target} weekday, you can choose to leave it alone or advance it to the next instance of the \code{target}. -There are separate help pages for shifting dates and date-times: +It is an S3 generic with built-in methods for: \itemize{ -\item \link[=date-shifting]{dates (Date)} -\item \link[=posixt-shifting]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-shifting]{Date}} +\item \code{\link[=posixt-shifting]{POSIXt}} } } \examples{ diff --git a/man/date_count_between.Rd b/man/date_count_between.Rd index a2e57fe4..22a2df12 100644 --- a/man/date_count_between.Rd +++ b/man/date_count_between.Rd @@ -35,10 +35,10 @@ fractional value. This is suitable for, say, computing the whole number of years or months between two dates, accounting for the day and time of day. -There are separate help pages for counting for dates and date-times: +It is an S3 generic with built-in methods for: \itemize{ -\item \link[=date-count-between]{dates (Date)} -\item \link[=posixt-count-between]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-count-between]{Date}} +\item \code{\link[=posixt-count-between]{POSIXt}} } } \section{Comparison Direction}{ diff --git a/man/date_format.Rd b/man/date_format.Rd index fd10fc23..da23b9ae 100644 --- a/man/date_format.Rd +++ b/man/date_format.Rd @@ -18,12 +18,11 @@ A character vector of the formatted input. } \description{ \code{date_format()} formats a date (Date) or date-time (POSIXct/POSIXlt) using -a \code{format} string. +a \code{format} string. This is an S3 generic with built-in methods for: -There are separate help pages for formatting dates and date-times: \itemize{ -\item \link[=date-formatting]{dates (Date)} -\item \link[=posixt-formatting]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-formatting]{Date}} +\item \code{\link[=posixt-formatting]{POSIXt}} } } \examples{ diff --git a/man/date_group.Rd b/man/date_group.Rd index 2bf5baa1..462e576b 100644 --- a/man/date_group.Rd +++ b/man/date_group.Rd @@ -26,13 +26,10 @@ A single positive integer specifying a multiple of \code{precision} to use.} } \description{ \code{date_group()} groups by a single component of a date-time, such as month -of the year, or day of the month. +of the year, or day of the month. It is an S3 generic with built-in +methods: -There are separate help pages for grouping dates and date-times: -\itemize{ -\item \link[=date-group]{dates (Date)} -\item \link[=posixt-group]{date-times (POSIXct/POSIXlt)} -} +\verb{R doclisting::methods_list("date_group")} } \examples{ # See type specific documentation for more examples diff --git a/man/date_seq.Rd b/man/date_seq.Rd index 66ec3270..9a789f17 100644 --- a/man/date_seq.Rd +++ b/man/date_seq.Rd @@ -36,12 +36,10 @@ A date or date-time vector. } \description{ \code{date_seq()} generates a date (Date) or date-time (POSIXct/POSIXlt) sequence. - -There are separate help pages for generating sequences for dates and -date-times: +It is an S3 generic with built-in methods for: \itemize{ -\item \link[=date-sequence]{dates (Date)} -\item \link[=posixt-sequence]{date-times (POSIXct/POSIXlt)} +\item \code{\link[=date-sequence]{Date}} +\item \code{\link[=posixt-sequence]{POSIXt}} } } \examples{ From ad0bdf611587adc5d102a7b7b45ebfdd4d2e8c78 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 6 Apr 2026 08:31:00 -0500 Subject: [PATCH 3/3] Fix typo --- R/date.R | 2 +- man/date_group.Rd | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/R/date.R b/R/date.R index f4ce880b..c22e780b 100644 --- a/R/date.R +++ b/R/date.R @@ -524,7 +524,7 @@ add_date_duration_time_point <- function(x, n, add_fn) { #' of the year, or day of the month. It is an S3 generic with built-in #' methods: #' -#' `R doclisting::methods_list("date_group")` +#' `r doclisting::methods_list("date_group")` #' #' @inheritParams calendar_group #' diff --git a/man/date_group.Rd b/man/date_group.Rd index 462e576b..b3aece85 100644 --- a/man/date_group.Rd +++ b/man/date_group.Rd @@ -29,7 +29,10 @@ A single positive integer specifying a multiple of \code{precision} to use.} of the year, or day of the month. It is an S3 generic with built-in methods: -\verb{R doclisting::methods_list("date_group")} +\itemize{ +\item \code{\link[=date-group]{Date}} +\item \code{\link[=posixt-group]{POSIXt}} +} } \examples{ # See type specific documentation for more examples