diff --git a/.Rbuildignore b/.Rbuildignore index 3b996a1..a37fd07 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,5 @@ Update package.R README.Rmd ^\.httr-oauth$ imgur.key +^cran-comments\.md$ +^CRAN-RELEASE$ diff --git a/CRAN-RELEASE b/CRAN-RELEASE new file mode 100644 index 0000000..ce0129b --- /dev/null +++ b/CRAN-RELEASE @@ -0,0 +1,2 @@ +This package was submitted to CRAN on 2019-09-15. +Once it is accepted, delete this file and tag the release (commit 763f74ea0b). diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..0dee5ff --- /dev/null +++ b/NEWS.md @@ -0,0 +1,4 @@ +# rwhatsapp 0.2.0 + +* Initial release to CRAN with first robust version. +* Added a `NEWS.md` file to track changes to the package. diff --git a/README.Rmd b/README.Rmd index 975e9ca..40e9096 100644 --- a/README.Rmd +++ b/README.Rmd @@ -35,6 +35,11 @@ This should work, no matter which device or locale you used to retrieve the `txt ## Installation +``` r +install.packages("rwhatsapp") +``` +Or install the GitHub version: + ``` r devtools::install_github("JBGruber/rwhatsapp") ``` diff --git a/cran-comments.md b/cran-comments.md new file mode 100644 index 0000000..3368048 --- /dev/null +++ b/cran-comments.md @@ -0,0 +1,12 @@ +## Test environments +* local Kubuntu 18.04, R version 3.6.1 +* win-builder.r-project.org, R-release, R-oldrelease, R-devel +* R-hub via rhub::check_for_cran() +* macOS 10.13 (on travis-ci), R: release +* Ubuntu Xenial 16.04 (on travis-ci), R: release, R: oldrel, R: devel + +## R CMD check results +0 ERRORs | 0 WARNINGs | 2 NOTEs + +* This is a new release. +* 1 Note on travis-ci: found 3619 marked UTF-8 strings (this is because of the included emoji data) diff --git a/tests/testthat/test-rwhatsapp.R b/tests/testthat/test-rwhatsapp.R index 80a9f79..4c6b90a 100755 --- a/tests/testthat/test-rwhatsapp.R +++ b/tests/testthat/test-rwhatsapp.R @@ -7,6 +7,7 @@ converted <- structure(c(1499898922.226, 1499937164.226), "POSIXt")) test_that("time is converted correctly", { + skip_on_cran() # standard # dd.MM.yyyy, hh:mm:ss a expect_equal( @@ -420,10 +421,10 @@ test_that("time is converted correctly", { ) # MM-dd-yy, hh:mm a expect_equal( - rwa_read(x = c( - "07-12-17, 10:35 PM - Johannes Gruber: Was it good?", - "07-13-17, 09:12 AM - R: Yes, it was" - ), tz = "GMT")$time, + rwa_read(x = c( + "07-12-17, 10:35 PM - Johannes Gruber: Was it good?", + "07-13-17, 09:12 AM - R: Yes, it was" + ), tz = "GMT")$time, converted, tolerance = 60 )