Skip to content

Commit 4a305dc

Browse files
committed
prepare for CRAN
1 parent dc32326 commit 4a305dc

File tree

10 files changed

+15
-23
lines changed

10 files changed

+15
-23
lines changed

DESCRIPTION

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
Type: Package
22
Package: dint
3-
Title: Special Purpose Integer Dates
3+
Title: A Toolkit for Year-Quarter and Year-Month Dates
44
Version: 1.0.0
55
Authors@R: person("Stefan", "Fleck", email = "[email protected]", role = c("aut", "cre"))
66
Maintainer: Stefan Fleck <[email protected]>
77
Description:
8-
A toolkit for working year-quarter and year-month dates.
8+
S3 classes and methods to create and work with year-quarter and year-month
9+
vectors. Basic arithmetic operations (such as adding and subtracting) are
10+
supported, as well as formatting and converting to and from standard R
11+
Date types.
912
License: MIT + file LICENSE
1013
URL: https://github.com/s-fleck/dint
1114
BugReports: https://github.com/s-fleck/dint/issues

R/date_y.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#' @return `date_y` returns an object of type `date_y`
99
#' @export
1010
#' @family simple dates
11-
#' @md
1211
#'
1312
#' @examples
1413
#' date_y(2013)
@@ -26,7 +25,6 @@ date_y <- function(y){
2625
#' argument is of type `date_y` or not.
2726
#'
2827
#' @export
29-
#' @md
3028
#' @rdname date_y
3129
is_date_y <- function(x){
3230
inherits(x, "date_y")
@@ -37,7 +35,6 @@ is_date_y <- function(x){
3735

3836
# as_data_y ---------------------------------------------------------------
3937

40-
#' @md
4138
#' @return `as_date_m` attempts to coerce its argument to `date_y` type
4239
#' @export
4340
#' @rdname date_y

R/date_ym.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#' @export
1414
#' @family simple dates
1515
#' @seealso [format.date_ym()]
16-
#' @md
1716
#'
1817
#' @examples
1918
#' date_ym(2013, 12)
@@ -39,7 +38,6 @@ date_ym <- function(y, m) {
3938
#' argument is of type `date_ym` or not.
4039
#'
4140
#' @export
42-
#' @md
4341
#' @rdname date_ym
4442
is_date_ym <- function(x){
4543
inherits(x, "date_ym")
@@ -48,7 +46,6 @@ is_date_ym <- function(x){
4846

4947

5048

51-
#' @md
5249
#' @return `as_date_ym` attempts to coerce its argument to `date_ym` type
5350
#' @export
5451
#' @rdname date_ym
@@ -126,7 +123,6 @@ as.Date.date_ym <- function(x, ...){
126123
#'
127124
#' @return A character vector
128125
#'
129-
#' @md
130126
#' @export
131127
#' @examples
132128
#'
@@ -278,7 +274,6 @@ seq.date_ym <- function(x, y, ...){
278274
#'
279275
#' @inherit format.date_ym
280276
#'
281-
#' @md
282277
#' @family ym convenience functions
283278
#' @seealso [format.date_ym()]
284279
#' @export

R/date_yq.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#' @export
1414
#' @family simple dates
1515
#' @seealso [format.date_ym()]
16-
#' @md
1716
#'
1817
#' @examples
1918
#' date_yq(2013, 3)
@@ -39,7 +38,6 @@ date_yq <- function(y, q) {
3938
#' argument is of type `date_yq` or not.
4039
#'
4140
#' @export
42-
#' @md
4341
#' @rdname date_yq
4442
is_date_yq <- function(x){
4543
inherits(x, "date_yq")
@@ -48,7 +46,6 @@ is_date_yq <- function(x){
4846

4947

5048

51-
#' @md
5249
#' @return `as_date_yq` attempts to coerce its argument to `date_yq` type
5350
#' @export
5451
#' @rdname date_yq
@@ -129,7 +126,6 @@ as.Date.date_yq <- function(
129126
#'
130127
#' @return A character vector
131128
#'
132-
#' @md
133129
#' @export
134130
#' @examples
135131
#'
@@ -295,7 +291,6 @@ seq.date_yq <- function(x, y, ...){
295291
#'
296292
#' @inherit format.date_yq
297293
#'
298-
#' @md
299294
#' @family yq convenience functions
300295
#' @seealso [format.date_yq()]
301296
#' @export

R/first_day_of_month.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#' @family ym convenience functions
77
#' @seealso [first_day_of_month()]
88
#' @export
9-
#' @md
109
#'
1110
#' @examples
1211
#'
@@ -53,7 +52,6 @@ last_day_ym <- function(
5352
#' @return a [Date]
5453
#'
5554
#' @rdname day_of_month
56-
#' @md
5755
#' @export
5856
#' @examples
5957
#'

R/first_day_of_quarter.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#' @family yq convenience functions
77
#' @seealso [first_day_of_quarter()]
88
#' @export
9-
#' @md
109
#'
1110
#' @examples
1211
#'
@@ -47,7 +46,6 @@ last_day_yq <- function(x, q = NULL){
4746
#' @return a [Date]
4847
#'
4948
#' @rdname day_of_quarter
50-
#' @md
5149
#' @export
5250
#' @examples
5351
#'

R/first_day_of_year.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ last_day_y <- function(x){
3737
#' @return a [Date]
3838
#'
3939
#' @rdname day_of_year
40-
#' @md
4140
#' @export
4241
#' @examples
4342
#' first_day_of_year("2016-06-04")

README.Rmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ knitr::opts_chunk$set(
1616

1717
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
1818

19-
A toolkit for working year-quarter and year-month dates
19+
A Toolkit for Year-Quarter and Year-Month Dates
20+
21+
S3 classes and methods to create and work with year-quarter and year-month
22+
vectors. Basic arithmetic operations (such as adding and subtracting) are
23+
supported, as well as formatting and converting to and from standard R
24+
Date types.
2025

2126
## Installation
2227

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ dint
55

66
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
77

8-
A toolkit for working year-quarter and year-month dates
8+
A Toolkit for Year-Quarter and Year-Month Dates
9+
10+
S3 classes and methods to create and work with year-quarter and year-month vectors. Basic arithmetic operations (such as adding and subtracting) are supported, as well as formatting and converting to and from standard R Date types.
911

1012
Installation
1113
------------

vignettes/dint.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "Stefan Fleck"
44
date: "`r Sys.Date()`"
55
output: rmarkdown::html_vignette
66
vignette: >
7-
%\VignetteIndexEntry{Vignette Title}
7+
%\VignetteIndexEntry{dint}
88
%\VignetteEncoding{UTF-8}
99
%\VignetteEngine{knitr::rmarkdown}
1010
editor_options:

0 commit comments

Comments
 (0)