From 77214f6ebf0a8113b11fd829c12f0f71363096a2 Mon Sep 17 00:00:00 2001 From: "Geoffrey Hannigan, PhD" Date: Sun, 1 Oct 2017 20:38:05 -0400 Subject: [PATCH 1/4] Added author information. --- DESCRIPTION | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6331cf4..ee5e975 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,9 @@ Type: Package Title: Convenience functions for the lubridate package Version: 0.1.0 Authors@R: person("Ellis", "Valentiner", email = "ellis.valentiner@gmail.com", - role = c("aut", "cre")) + role = c("aut", "cre")), + person("Geoffrey", "Hannigan", email = "hanni035@umn.edu", + role = c("ctb")) Description: Provides extra functionality to lubridate. Largely consisting of convenience functions. License: MIT + file LICENSE From ad25c16ea3303372184456a97e5b7cad8ec67490 Mon Sep 17 00:00:00 2001 From: Ellis Valentiner Date: Sun, 1 Oct 2017 20:44:30 -0400 Subject: [PATCH 2/4] Authors@R should be a vector --- DESCRIPTION | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ee5e975..caec3fb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,10 +2,9 @@ Package: lubridateExtras Type: Package Title: Convenience functions for the lubridate package Version: 0.1.0 -Authors@R: person("Ellis", "Valentiner", email = "ellis.valentiner@gmail.com", - role = c("aut", "cre")), - person("Geoffrey", "Hannigan", email = "hanni035@umn.edu", - role = c("ctb")) +Authors@R: c( + person("Ellis", "Valentiner", email = "ellis.valentiner@gmail.com", role = c("aut", "cre")), + person("Geoffrey", "Hannigan", email = "hanni035@umn.edu", role = c("ctb")) Description: Provides extra functionality to lubridate. Largely consisting of convenience functions. License: MIT + file LICENSE From 95d9f9f80a2312ad8b517f6e1ae02afe43ddef01 Mon Sep 17 00:00:00 2001 From: Ellis Valentiner Date: Sun, 1 Oct 2017 20:52:24 -0400 Subject: [PATCH 3/4] Forgot a ) --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index caec3fb..c8dd0e4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -4,7 +4,7 @@ Title: Convenience functions for the lubridate package Version: 0.1.0 Authors@R: c( person("Ellis", "Valentiner", email = "ellis.valentiner@gmail.com", role = c("aut", "cre")), - person("Geoffrey", "Hannigan", email = "hanni035@umn.edu", role = c("ctb")) + person("Geoffrey", "Hannigan", email = "hanni035@umn.edu", role = c("ctb"))) Description: Provides extra functionality to lubridate. Largely consisting of convenience functions. License: MIT + file LICENSE From bc07d6712b8e8bbea80f9e21fb0dce2ef286332c Mon Sep 17 00:00:00 2001 From: Ellis Valentiner Date: Thu, 12 Oct 2017 17:11:46 -0400 Subject: [PATCH 4/4] Rebuild package/site with `VignetteBuilder: knitr` (apparently super important but not checked for) --- DESCRIPTION | 3 +++ README.md | 8 ++++---- docs/articles/intro.html | 2 +- docs/authors.html | 4 ++++ docs/index.html | 9 +++++---- docs/reference/days_ago.html | 2 +- docs/reference/days_hence.html | 2 +- docs/reference/tomorrow.html | 2 +- docs/reference/yesterday.html | 2 +- lubridateExtras.Rproj | 2 +- vignettes/intro.Rmd | 14 ++++++++------ 11 files changed, 30 insertions(+), 20 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c8dd0e4..70bb1ba 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,6 +12,9 @@ Encoding: UTF-8 LazyData: true Imports: lubridate (>= 1.6.0) +Suggests: + knitr Remotes: tidyverse/lubridate +VignetteBuilder: knitr RoxygenNote: 6.0.1 diff --git a/README.md b/README.md index e4f9fc4..d5464d4 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,16 @@ Usage library(lubridateExtras) yesterday() -#> [1] "2017-09-23" +#> [1] "2017-10-11" tomorrow() -#> [1] "2017-09-25" +#> [1] "2017-10-13" days_ago(7) # equivalent to lubridate::today() - lubridate::days(7) -#> [1] "2017-09-17" +#> [1] "2017-10-05" days_hence(7) # equivalent to lubridate::today() + lubridate::days(7) -#> [1] "2017-10-01" +#> [1] "2017-10-19" ``` Why lubridateExtras? diff --git a/docs/articles/intro.html b/docs/articles/intro.html index 6052a03..d22ee69 100644 --- a/docs/articles/intro.html +++ b/docs/articles/intro.html @@ -64,10 +64,10 @@

Introduction to lubridateExtras

+

lubridateExtras provides functions to improve code readability and increase laziness.

suppressPackageStartupMessages(library(dplyr))
 suppressPackageStartupMessages(library(lubridate))
 library(lubridateExtras)
-

lubridateExtras provides functions to improve code readability and increase laziness.

Example

diff --git a/docs/authors.html b/docs/authors.html index a970d12..01c2c14 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -88,6 +88,10 @@

Authors

Ellis Valentiner. Author, maintainer.

+
  • +

    Geoffrey Hannigan. Contributor. +

    +
  • diff --git a/docs/index.html b/docs/index.html index 217f602..bf0aaf9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -86,16 +86,16 @@

    library(lubridateExtras)
     
     yesterday()
    -#> [1] "2017-09-23"
    +#> [1] "2017-10-11"
     
     tomorrow()
    -#> [1] "2017-09-25"
    +#> [1] "2017-10-13"
     
     days_ago(7)  # equivalent to lubridate::today() - lubridate::days(7)
    -#> [1] "2017-09-17"
    +#> [1] "2017-10-05"
     
     days_hence(7)  # equivalent to lubridate::today() + lubridate::days(7)
    -#> [1] "2017-10-01"
    +#> [1] "2017-10-19"

    @@ -114,6 +114,7 @@

    Developers

    diff --git a/docs/reference/days_ago.html b/docs/reference/days_ago.html index d3fce2a..b348584 100644 --- a/docs/reference/days_ago.html +++ b/docs/reference/days_ago.html @@ -110,7 +110,7 @@

    Value

    Examples

    -
    days_ago(3)
    #> [1] "2017-09-21"
    days_ago(1) == yesterday()
    #> [1] TRUE
    +
    days_ago(3)
    #> [1] "2017-10-09"
    days_ago(1) == yesterday()
    #> [1] TRUE