Skip to content

grates

1.8.0Package record

Grouped Date Classes

2packages dependsuggested by 1
15.6Kdownloads / year
81.0%test coverage
13/13flavors OK

Overview

About

Provides a coherent interface and implementation for creating grouped date classes.

Changes in 1.8.0
  • New function get_interval_duration() which returns the number of days covered by an element of a grates object, e.g. the following is TRUE `` identical( get_interval_duration(yearmonth(2020, 1:3)), c(31, 29, 31) ) ``

breaking change

  • as.double() for <grates_int_period> objects now returns the same result (subject to type) as as.integer(). Both return the lower bound of related interval. Note that <grates_int_period> objects should still be treated as experimental for the time being.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.8.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.8.0Citation fileNoWebsiteYes · litedown
Help pages
26 (1 internal)includes a package overview page
Examples that run
100%20 run in a plain check (7 of them under a condition)
Exported functions with examples
91%
Documented parameters
72%
Return-value docs
100%
Help pages citing references
12%
Vignettes (1)

Downloads

15.6K
CRAN downloads in the past year
Rank #3,862 · ~43/day · ~1.3K/mo
Daily download trend is not available in this view yet.
91530 days
2.4K90 days
15.6K1 year
Compare downloads with other packages →
Also on165 r2u6 autocran3.1K conda_forge77 c2d4u

Repository

21Stars
1Forks
19Open issues
0Open PRs
22Releases
304Commits
1Commit identities
304 commits · Last activity 2026-03-25 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
60%
Median days to close, 50 most recently updated closed issues
24
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-24 · 202026-07-07 · 21
PracticesBeta

6 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/reconverse/grates on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.Rmdlitedown

GitHub Pages site last deployed 2026-03-25

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing grates adds 1 package (1 with compiled code, 20 KB of source tarballs). Heaviest: fastymd 20 KB.

Depends (1)
R >= 3.6.0
Imports (2)
utilsfastymd
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Depends 1 · Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.1 (2021)
Listed in earlier versions (1)
no longer listed · 0.1.1 to 0.1.2
Releases (23)

Pick two releases to compare their code metrics.

Show 14 earlier eventsHide 14 earlier events
  • 1.2.0
    record
    2024-03-08 · diff ↗ ·
    added 3 exports
    %during%, date_end, date_start
  • 1.1.1
    record
    2024-02-28 · diff ↗
  • 1.1.0
    record
    2023-06-09 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.1
    record
    2023-04-03 · diff ↗
  • 1.0.0
    record
    2023-03-17 · diff ↗ ·
    removed 17 exports
    as_quarter, clock_locale, get_date_range, get_quarter, is_grate, is_quarter, month, period, quarter, scale_x_grates_quarter, scale_x_yearweek_1, scale_x_yearweek_2, scale_x_yearweek_3, scale_x_yearweek_4, scale_x_yearweek_5, scale_x_yearweek_6, scale_x_yearweek_7
    added 33 exports
    as_epiweek, as_isoweek, as_yearmonth, as_yearquarter, epiweek, get_offset, is_epiweek, is_isoweek, is_yearmonth, is_yearquarter, isoweek, new_epiweek, new_isoweek, new_month, new_period, new_yearmonth, new_yearquarter, new_yearweek, scale_x_grates_epiweek, scale_x_grates_isoweek, scale_x_grates_yearmonth, scale_x_grates_yearquarter, scale_x_grates_yearweek_epiweek, scale_x_grates_yearweek_friday, scale_x_grates_yearweek_isoweek, scale_x_grates_yearweek_monday, scale_x_grates_yearweek_saturday, scale_x_grates_yearweek_sunday, scale_x_grates_yearweek_thursday, scale_x_grates_yearweek_tuesday and 3 more
  • 0.3.1
    record
    2022-11-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.0
    record
    2021-10-21 · diff ↗
  • 0.2.0
    record
    2021-05-29 · diff ↗ ·
    removed 26 exports
    as_yr, as_yrmon, as_yrqtr, as_yrwk, get_interval, get_month, get_week_start, is_yr, is_yrmon, is_yrqtr, is_yrwk, new_date, s3_register, scale_x_int_period, scale_x_period, scale_x_yr, scale_x_yrmon, scale_x_yrqtr, scale_x_yrwk, scale_x_yrwk_fd_1, scale_x_yrwk_fd_2, scale_x_yrwk_fd_3, scale_x_yrwk_fd_4, scale_x_yrwk_fd_5, scale_x_yrwk_fd_6, scale_x_yrwk_fd_7
    added 30 exports
    as_month, as_quarter, as_year, as_yearweek, clock_locale, get_date_range, get_n, int_period, is_month, is_quarter, is_year, is_yearweek, month, period, quarter, scale_x_grates_int_period, scale_x_grates_month, scale_x_grates_period, scale_x_grates_quarter, scale_x_grates_year, scale_x_grates_yearweek, scale_x_yearweek_1, scale_x_yearweek_2, scale_x_yearweek_3, scale_x_yearweek_4, scale_x_yearweek_5, scale_x_yearweek_6, scale_x_yearweek_7, year, yearweek
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.2
    record
    2021-03-28 · diff ↗ ·
    added 1 export
    get_week_start
  • 0.1.1
    record
    2021-03-19
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-03-19
Total releases
23 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Download size
496 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("grates")
Taylor, T. (2026). grates: Grouped Date Classes (Version 1.8.0) [Computer software]. https://doi.org/10.32614/CRAN.package.grates

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for grates version 1.8.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy