diff --git a/DESCRIPTION b/DESCRIPTION index 6331cf4..70bb1ba 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,8 +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")) +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 @@ -11,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 @@
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.
Ellis Valentiner. Author, maintainer.
+Geoffrey Hannigan. Contributor. +
+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"
+days_ago(3)#> [1] "2017-09-21"#> [1] TRUE
days_ago(3)#> [1] "2017-10-09"#> [1] TRUE