Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-fleck authored and Stefan Fleck committed Jan 3, 2019
1 parent 076a2a9 commit bba98c7
Show file tree
Hide file tree
Showing 71 changed files with 9,714 additions and 30 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
.Rhistory
.RData
.Ruserdata
inst/doc
docs
_pkgdown.yml

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Package
Package: dint
Title: A Toolkit for Year-Quarter, Year-Month and Year-Isoweek
Dates
Version: 2.0.0.9006
Version: 2.1.0
Authors@R:
person(given = "Stefan",
family = "Fleck",
Expand Down
12 changes: 6 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# dint 2.0.0.9000

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

* **breaking**: formatting `date_xx` objects now uses placeholders similar to
`base::strptime()` (e.g `%Y`, `%m`, `%q`, etc...) instead of presets. The
new implementation is also noticably faster than the old.
new implementation is also noticeably faster than the old.
* **breaking**: all `first_day_of_*()` and `format_date_y*()` functions now
have shorter names: `first_of_*()` and `format_y*()`. The original names
will still work until the next release but give a deprecation warning.
* Added support for `c()`, `min()`, `max()`, `range()`
* You can now direclty supply a numeric year to `first_of_year()` and
* You can now directly supply a numeric year to `first_of_year()` and
`last_of_year()` (e.g. `first_of_year(2018)`)
* added `date_yw` for storing isoweeks and modified existing funtions to
accomodate for them.
* added `date_yw` for storing isoweeks and modified existing functions to
accommodate for them.
* added `[` method for `date_xx` objects that preserves class attribute when
subsetting
* `%y+%` / `%y-%` can add/subtract years from date_xx objects
Expand Down
2 changes: 1 addition & 1 deletion R/zoo-compat.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#' Coerce to zoo yeartqr objects
#'
#' `as_yearqtr()` and `as_yearmon()` are included for interoperatility with
#' `as_yearqtr()` and `as_yearmon()` are included for interoperability with
#' [zoo::yearqtr()], an alternative year-quarter format that is based on a
#' decimal representation as opposed to dint's integer representation of
#' year-quarters. `as_yearweek()` follows a similar idea, but there is no
Expand Down
5 changes: 3 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ 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/)


## Dependencies

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


Expand Down Expand Up @@ -68,7 +69,7 @@ w <- as_date_yw(as.Date("2017-01-01"))
# printing
print(q)
print(m)
print(w) # isoweeks do not follow calender years!
print(w) # isoweeks do not follow calendar years!
# arithmetic operations
# quarters
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ dint

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

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)
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/)

Dependencies
------------

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.
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.

Installation
------------
Expand Down Expand Up @@ -46,7 +46,7 @@ print(q)
#> [1] "2014-Q4"
print(m)
#> [1] "2014-M12"
print(w) # isoweeks do not follow calender years!
print(w) # isoweeks do not follow calendar years!
#> [1] "2016-W52"

# arithmetic operations
Expand Down
49 changes: 49 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
reference:
- title: Coercion and Constructors
desc: ~
contents:
- '`date_xx`'
- '`date_y`'
- '`date_ym`'
- '`date_yq`'
- '`date_yw`'
- '`as.Date.date_xx`'
- '`first_of_isoweek`'
- '`first_of_isoyear`'
- '`first_of_month`'
- '`first_of_quarter`'
- '`first_of_year`'
- '`first_of_yq`'
- '`get_year`'
- '`year.date_xx`'
- '`as_yearqtr`'
- title: Formatting & Scales
desc: ~
contents:
- '`format_date_xx`'
- '`format_ym`'
- '`format_yq`'
- '`format_yw`'
- '`scale_date_xx`'
- '`date_xx_breaks`'
- title: Arithmethics and Sequences
desc: ~
contents:
- '`date_xx_arithmetic`'
- '`date_xx_sequences`'
- '`round.date_yq`'
- '`%y+%`'
- title: Methods for Base R Generics
desc: ~
contents:
- '`Ops.date_xx`'
- '`Summary.date_xx`'
- '`[.date_xx`'
- '`c.date_xx`'
- '`print.date_xx`'
- '`rep.date_xx`'
- title: Misc
desc: ~
contents:
- '`is_quarter_bounds`'
- '`date_xx_arithmetic_disabled`'
6 changes: 4 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
## Test environments
* local ubuntu install, R 3.4.4
* ubuntu 14.04 (on RStudio Server), R 3.5.0
* local ubuntu install, R 3.5.1
* ubuntu 14.04 (via RStudio Server), R 3.4.3
* ubuntu 14.04 (via travis), R 3.5.1
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 0 note

* Rewrote formatting functions and added a support for common group generics
* Added ggplot scales
132 changes: 132 additions & 0 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bba98c7

Please sign in to comment.