Skip to content

Commit bba98c7

Browse files
s-fleckStefan Fleck
authored and
Stefan Fleck
committed
prep for release
1 parent 076a2a9 commit bba98c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+9714
-30
lines changed

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5-
inst/doc
6-
docs
7-
_pkgdown.yml
5+

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Package
22
Package: dint
33
Title: A Toolkit for Year-Quarter, Year-Month and Year-Isoweek
44
Dates
5-
Version: 2.0.0.9006
5+
Version: 2.1.0
66
Authors@R:
77
person(given = "Stefan",
88
family = "Fleck",

NEWS.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# dint 2.0.0.9000
22

33
* added **ggplot2** scales for dint data types
4-
* added predicates to check wether dates correspond to the boundaries of
4+
* added predicates to check whether dates correspond to the boundaries of
55
years or quarters (`is_quarter_bounds()`, `is_year_bounds()`,
66
`is_first_of_quarter()`, etc...)
77
* export methods for `unique` and `summary` that were introduced in the last
88
version but mistakenly not exported
99
* One can now subtract two `date_xx` of the same subclass from each other
1010
(the result is an `integer`)
11-
* added `as_yearmon()` and `as_yearqtr()` for converting to *zoo* S3 classes
11+
* added `as_yearmon()` and `as_yearqtr()` for converting to **zoo** S3 classes
1212
* Removed functions that were deprecated with dint 2.0.0
1313
* added `Sys.date_yq()`, `Sys.date_ym()` and `Sys.date_yw()` to get the current
1414
quarter, month or isoweek.
@@ -19,15 +19,15 @@
1919

2020
* **breaking**: formatting `date_xx` objects now uses placeholders similar to
2121
`base::strptime()` (e.g `%Y`, `%m`, `%q`, etc...) instead of presets. The
22-
new implementation is also noticably faster than the old.
22+
new implementation is also noticeably faster than the old.
2323
* **breaking**: all `first_day_of_*()` and `format_date_y*()` functions now
2424
have shorter names: `first_of_*()` and `format_y*()`. The original names
2525
will still work until the next release but give a deprecation warning.
2626
* Added support for `c()`, `min()`, `max()`, `range()`
27-
* You can now direclty supply a numeric year to `first_of_year()` and
27+
* You can now directly supply a numeric year to `first_of_year()` and
2828
`last_of_year()` (e.g. `first_of_year(2018)`)
29-
* added `date_yw` for storing isoweeks and modified existing funtions to
30-
accomodate for them.
29+
* added `date_yw` for storing isoweeks and modified existing functions to
30+
accommodate for them.
3131
* added `[` method for `date_xx` objects that preserves class attribute when
3232
subsetting
3333
* `%y+%` / `%y-%` can add/subtract years from date_xx objects

R/zoo-compat.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#' Coerce to zoo yeartqr objects
44
#'
5-
#' `as_yearqtr()` and `as_yearmon()` are included for interoperatility with
5+
#' `as_yearqtr()` and `as_yearmon()` are included for interoperability with
66
#' [zoo::yearqtr()], an alternative year-quarter format that is based on a
77
#' decimal representation as opposed to dint's integer representation of
88
#' year-quarters. `as_yearweek()` follows a similar idea, but there is no

README.Rmd

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ vectors. Basic arithmetic operations (such as adding and subtracting) are
2626
supported, as well as formatting and converting to and from standard R
2727
Date types. For more info please refer to the
2828
[package vignette](https://CRAN.R-project.org/package=dint/vignettes/dint.html)
29+
or the [documentation](https://s-fleck.github.io/dint/)
2930

3031

3132
## Dependencies
3233

3334
dint is implemented strictly in base R and will **always stay dependency-free**.
34-
The optional dependencies in Suggests are to enusre interoperability with
35+
The optional dependencies in Suggests are to ensure interoperability with
3536
these packages if you are already using them.
3637

3738

@@ -68,7 +69,7 @@ w <- as_date_yw(as.Date("2017-01-01"))
6869
# printing
6970
print(q)
7071
print(m)
71-
print(w) # isoweeks do not follow calender years!
72+
print(w) # isoweeks do not follow calendar years!
7273
7374
# arithmetic operations
7475
# quarters

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ dint
77

88
A Toolkit for Year-Quarter, Year-Month and Year-Isoweek Dates
99

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. For more info please refer to the [package vignette](https://CRAN.R-project.org/package=dint/vignettes/dint.html)
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. For more info please refer to the [package vignette](https://CRAN.R-project.org/package=dint/vignettes/dint.html) or the [documentation](https://s-fleck.github.io/dint/)
1111

1212
Dependencies
1313
------------
1414

15-
dint is implemented strictly in base R and will **always stay dependency-free**. The optional dependencies in Suggests are to enusre interoperability with these packages if you are already using them.
15+
dint is implemented strictly in base R and will **always stay dependency-free**. The optional dependencies in Suggests are to ensure interoperability with these packages if you are already using them.
1616

1717
Installation
1818
------------
@@ -46,7 +46,7 @@ print(q)
4646
#> [1] "2014-Q4"
4747
print(m)
4848
#> [1] "2014-M12"
49-
print(w) # isoweeks do not follow calender years!
49+
print(w) # isoweeks do not follow calendar years!
5050
#> [1] "2016-W52"
5151

5252
# arithmetic operations

_pkgdown.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
reference:
2+
- title: Coercion and Constructors
3+
desc: ~
4+
contents:
5+
- '`date_xx`'
6+
- '`date_y`'
7+
- '`date_ym`'
8+
- '`date_yq`'
9+
- '`date_yw`'
10+
- '`as.Date.date_xx`'
11+
- '`first_of_isoweek`'
12+
- '`first_of_isoyear`'
13+
- '`first_of_month`'
14+
- '`first_of_quarter`'
15+
- '`first_of_year`'
16+
- '`first_of_yq`'
17+
- '`get_year`'
18+
- '`year.date_xx`'
19+
- '`as_yearqtr`'
20+
- title: Formatting & Scales
21+
desc: ~
22+
contents:
23+
- '`format_date_xx`'
24+
- '`format_ym`'
25+
- '`format_yq`'
26+
- '`format_yw`'
27+
- '`scale_date_xx`'
28+
- '`date_xx_breaks`'
29+
- title: Arithmethics and Sequences
30+
desc: ~
31+
contents:
32+
- '`date_xx_arithmetic`'
33+
- '`date_xx_sequences`'
34+
- '`round.date_yq`'
35+
- '`%y+%`'
36+
- title: Methods for Base R Generics
37+
desc: ~
38+
contents:
39+
- '`Ops.date_xx`'
40+
- '`Summary.date_xx`'
41+
- '`[.date_xx`'
42+
- '`c.date_xx`'
43+
- '`print.date_xx`'
44+
- '`rep.date_xx`'
45+
- title: Misc
46+
desc: ~
47+
contents:
48+
- '`is_quarter_bounds`'
49+
- '`date_xx_arithmetic_disabled`'

cran-comments.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## Test environments
2-
* local ubuntu install, R 3.4.4
3-
* ubuntu 14.04 (on RStudio Server), R 3.5.0
2+
* local ubuntu install, R 3.5.1
3+
* ubuntu 14.04 (via RStudio Server), R 3.4.3
4+
* ubuntu 14.04 (via travis), R 3.5.1
45
* win-builder (devel and release)
56

67
## R CMD check results
78

89
0 errors | 0 warnings | 0 note
910

1011
* Rewrote formatting functions and added a support for common group generics
12+
* Added ggplot scales

docs/LICENSE-text.html

+132
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)