From ce5dc7b279c98d7a17b2f03797984ae8206ca3a2 Mon Sep 17 00:00:00 2001 From: Stefan Fleck Date: Thu, 13 Jun 2019 13:50:45 +0200 Subject: [PATCH] prep for release --- .Rbuildignore | 1 + DESCRIPTION | 2 +- NEWS.md | 2 +- README.Rmd | 5 ++- README.md | 62 +++++++++++++++--------------- cran-comments.md | 7 ++-- docs/404.html | 2 +- docs/LICENSE-text.html | 2 +- docs/LICENSE.html | 2 +- docs/authors.html | 2 +- docs/index.html | 64 +++++++++++++++---------------- docs/news/index.html | 8 ++-- docs/pkgdown.yml | 2 +- docs/reference/BackupQueue.html | 2 +- docs/reference/backup_info.html | 21 +++++----- docs/reference/index.html | 2 +- docs/reference/rotate.html | 22 ++++++----- docs/reference/rotor-package.html | 2 +- revdep/.gitignore | 6 +++ revdep/email.yml | 5 +++ 20 files changed, 119 insertions(+), 102 deletions(-) create mode 100644 revdep/.gitignore create mode 100644 revdep/email.yml diff --git a/.Rbuildignore b/.Rbuildignore index 447c05b..4047504 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -11,3 +11,4 @@ ^CRAN-RELEASE$ ^codecov\.yml$ ^vignettes/benchmarks\.Rmd$ +^revdep$ diff --git a/DESCRIPTION b/DESCRIPTION index 56fbec9..40debb7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: rotor Title: Log Rotation and Conditional Backups -Version: 0.2.2.9000 +Version: 0.2.3 Authors@R: person(given = "Stefan", family = "Fleck", diff --git a/NEWS.md b/NEWS.md index c4e3d67..0e22fc4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# rotor 0.2.2.9000 +# rotor 0.2.3 * Changed default behaviour of `rotate_date()`, `rotate_time()`, etc...: If no backups exist of target file, use the "created" timestamp diff --git a/README.Rmd b/README.Rmd index 83e90f7..47089cd 100644 --- a/README.Rmd +++ b/README.Rmd @@ -141,7 +141,7 @@ backup_info(tf) ``` If we examine the "timestamp" column in the example above, we see that missing date information is always interpreted as the start of the period; i.e. so -`"2019-01"` is equivalent to `"2019-01-01--00--00--00"` for all intentds and +`"2019-01"` is equivalent to `"2019-01-01--00--00--00"` for all intents and purposes. ```{r} @@ -173,7 +173,8 @@ non-base dependencies: encapsulated object-oriented programming. * [dint](https://github.com/s-fleck/dint): A toolkit for working year-quarter and year-month dates that I am also the author of. It is used by - `rotate_date()` and `rotate_time()` to deal with calendar periods. + `rotate_date()` and `rotate_time()` to deal with calendar periods (such as + weeks or months). Both packages have no transitive dependencies (i.e they do not depend on anything outside of base R) diff --git a/README.md b/README.md index 1b00f76..064abf3 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,8 @@ backup(tf, compression = TRUE) # display backups of a file list_backups(tf) -#> [1] "/tmp/RtmpT5fN3W/rotor/mylogfile.1.log.zip" -#> [2] "/tmp/RtmpT5fN3W/rotor/mylogfile.2.log" +#> [1] "/tmp/RtmpOyN1LN/rotor/mylogfile.1.log.zip" +#> [2] "/tmp/RtmpOyN1LN/rotor/mylogfile.2.log" ``` `rotate()` also backs up a file, but replaces the original file with an @@ -93,9 +93,9 @@ empty one. ``` r rotate(tf) list_backups(tf) -#> [1] "/tmp/RtmpT5fN3W/rotor/mylogfile.1.log" -#> [2] "/tmp/RtmpT5fN3W/rotor/mylogfile.2.log.zip" -#> [3] "/tmp/RtmpT5fN3W/rotor/mylogfile.3.log" +#> [1] "/tmp/RtmpOyN1LN/rotor/mylogfile.1.log" +#> [2] "/tmp/RtmpOyN1LN/rotor/mylogfile.2.log.zip" +#> [3] "/tmp/RtmpOyN1LN/rotor/mylogfile.3.log" # the original file is now empty readLines(tf) @@ -118,10 +118,10 @@ backup(tf, max_backups = 4) backup(tf, max_backups = 4) list_backups(tf) -#> [1] "/tmp/RtmpT5fN3W/rotor/mylogfile.1.log" -#> [2] "/tmp/RtmpT5fN3W/rotor/mylogfile.2.log" -#> [3] "/tmp/RtmpT5fN3W/rotor/mylogfile.3.log" -#> [4] "/tmp/RtmpT5fN3W/rotor/mylogfile.4.log.zip" +#> [1] "/tmp/RtmpOyN1LN/rotor/mylogfile.1.log" +#> [2] "/tmp/RtmpOyN1LN/rotor/mylogfile.2.log" +#> [3] "/tmp/RtmpOyN1LN/rotor/mylogfile.3.log" +#> [4] "/tmp/RtmpOyN1LN/rotor/mylogfile.4.log.zip" ``` We can also use `prune_backups()` to delete old backups. Other than @@ -155,35 +155,35 @@ backup_time(tf, format = "%Y%m%dT%H%M%S") # ISO 8601 compatible backup_info(tf) #> path name -#> 1 /tmp/RtmpT5fN3W/rotor/mylogfile.2019-05-31_06-48-27.log mylogfile -#> 2 /tmp/RtmpT5fN3W/rotor/mylogfile.2019-05-31--06-48-27.log mylogfile -#> 5 /tmp/RtmpT5fN3W/rotor/mylogfile.20190531T064827.log mylogfile -#> 3 /tmp/RtmpT5fN3W/rotor/mylogfile.2019-05-31.log mylogfile -#> 4 /tmp/RtmpT5fN3W/rotor/mylogfile.2019-05.log mylogfile +#> 1 /tmp/RtmpOyN1LN/rotor/mylogfile.2019-06-17_09-55-44.log mylogfile +#> 2 /tmp/RtmpOyN1LN/rotor/mylogfile.2019-06-17--09-55-44.log mylogfile +#> 5 /tmp/RtmpOyN1LN/rotor/mylogfile.20190617T095544.log mylogfile +#> 3 /tmp/RtmpOyN1LN/rotor/mylogfile.2019-06-17.log mylogfile +#> 4 /tmp/RtmpOyN1LN/rotor/mylogfile.2019-06.log mylogfile #> sfx ext size isdir mode mtime -#> 1 2019-05-31_06-48-27 log 26 FALSE 664 2019-05-31 06:48:27 -#> 2 2019-05-31--06-48-27 log 26 FALSE 664 2019-05-31 06:48:27 -#> 5 20190531T064827 log 26 FALSE 664 2019-05-31 06:48:27 -#> 3 2019-05-31 log 26 FALSE 664 2019-05-31 06:48:26 -#> 4 2019-05 log 26 FALSE 664 2019-05-31 06:48:26 +#> 1 2019-06-17_09-55-44 log 26 FALSE 664 2019-06-17 09:55:44 +#> 2 2019-06-17--09-55-44 log 26 FALSE 664 2019-06-17 09:55:44 +#> 5 20190617T095544 log 26 FALSE 664 2019-06-17 09:55:44 +#> 3 2019-06-17 log 26 FALSE 664 2019-06-17 09:55:44 +#> 4 2019-06 log 26 FALSE 664 2019-06-17 09:55:44 #> ctime atime uid gid uname grname -#> 1 2019-05-31 06:48:27 2019-05-31 06:48:27 1000 1000 hoelk hoelk -#> 2 2019-05-31 06:48:27 2019-05-31 06:48:27 1000 1000 hoelk hoelk -#> 5 2019-05-31 06:48:27 2019-05-31 06:48:27 1000 1000 hoelk hoelk -#> 3 2019-05-31 06:48:26 2019-05-31 06:48:26 1000 1000 hoelk hoelk -#> 4 2019-05-31 06:48:26 2019-05-31 06:48:26 1000 1000 hoelk hoelk +#> 1 2019-06-17 09:55:44 2019-06-17 09:55:44 1000 1000 hoelk hoelk +#> 2 2019-06-17 09:55:44 2019-06-17 09:55:44 1000 1000 hoelk hoelk +#> 5 2019-06-17 09:55:44 2019-06-17 09:55:44 1000 1000 hoelk hoelk +#> 3 2019-06-17 09:55:44 2019-06-17 09:55:44 1000 1000 hoelk hoelk +#> 4 2019-06-17 09:55:44 2019-06-17 09:55:44 1000 1000 hoelk hoelk #> timestamp -#> 1 2019-05-31 06:48:27 -#> 2 2019-05-31 06:48:27 -#> 5 2019-05-31 06:48:27 -#> 3 2019-05-31 00:00:00 -#> 4 2019-05-01 00:00:00 +#> 1 2019-06-17 09:55:44 +#> 2 2019-06-17 09:55:44 +#> 5 2019-06-17 09:55:44 +#> 3 2019-06-17 00:00:00 +#> 4 2019-06-01 00:00:00 ``` If we examine the “timestamp” column in the example above, we see that missing date information is always interpreted as the start of the period; i.e. so `"2019-01"` is equivalent to `"2019-01-01--00--00--00"` -for all intentds and purposes. +for all intents and purposes. ``` r prune_backups(tf, max_backups = 0) # cleanup @@ -212,7 +212,7 @@ two non-base dependencies: - [dint](https://github.com/s-fleck/dint): A toolkit for working year-quarter and year-month dates that I am also the author of. It is used by `rotate_date()` and `rotate_time()` to deal with calendar - periods. + periods (such as weeks or months). Both packages have no transitive dependencies (i.e they do not depend on anything outside of base R) diff --git a/cran-comments.md b/cran-comments.md index 647fd37..7eb0bbf 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -7,8 +7,7 @@ ## R CMD check results -0 errors | 0 warnings | 1 note +0 errors | 0 warnings | 0 notes -* fleshed out R6 API -* fixed edge-case bug on macOS related to timezones -* new features and bugfixes +maintenance release with saner default behaviour for rotate() and backup() if +no backups exist yet diff --git a/docs/404.html b/docs/404.html index f5586eb..9795805 100644 --- a/docs/404.html +++ b/docs/404.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 59eb8d0..63375f1 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 821ca29..b57cf02 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/docs/authors.html b/docs/authors.html index d22ff50..aa937bf 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/docs/index.html b/docs/index.html index 90d7248..3b0797b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ rotor - 0.2.2.9000 + 0.2.3 @@ -109,14 +109,14 @@

# display backups of a file list_backups(tf) -#> [1] "/tmp/RtmpTBrRRH/rotor/mylogfile.1.log.zip" -#> [2] "/tmp/RtmpTBrRRH/rotor/mylogfile.2.log" +#> [1] "/tmp/Rtmp9bus6U/rotor/mylogfile.1.log.zip" +#> [2] "/tmp/Rtmp9bus6U/rotor/mylogfile.2.log"

rotate() also backs up a file, but replaces the original file with an empty one.

+#> [1] "/tmp/Rtmp9bus6U/rotor/mylogfile.1.log" +#> [2] "/tmp/Rtmp9bus6U/rotor/mylogfile.2.log" +#> [3] "/tmp/Rtmp9bus6U/rotor/mylogfile.3.log" +#> [4] "/tmp/Rtmp9bus6U/rotor/mylogfile.4.log.zip"

We can also use prune_backups() to delete old backups. Other than ensuring that no new backups is created, it works identically to using backup() with the max_backups parameter. By setting it to 0, we delete all backups.

prune_backups(tf, max_backups = 0)
@@ -155,30 +155,30 @@

backup_info(tf) #> path name -#> 1 /tmp/RtmpTBrRRH/rotor/mylogfile.2019-05-31_07-00-41.log mylogfile -#> 2 /tmp/RtmpTBrRRH/rotor/mylogfile.2019-05-31--07-00-41.log mylogfile -#> 5 /tmp/RtmpTBrRRH/rotor/mylogfile.20190531T070041.log mylogfile -#> 3 /tmp/RtmpTBrRRH/rotor/mylogfile.2019-05-31.log mylogfile -#> 4 /tmp/RtmpTBrRRH/rotor/mylogfile.2019-05.log mylogfile +#> 1 /tmp/Rtmp9bus6U/rotor/mylogfile.2019-06-17_09-55-55.log mylogfile +#> 2 /tmp/Rtmp9bus6U/rotor/mylogfile.2019-06-17--09-55-55.log mylogfile +#> 5 /tmp/Rtmp9bus6U/rotor/mylogfile.20190617T095555.log mylogfile +#> 3 /tmp/Rtmp9bus6U/rotor/mylogfile.2019-06-17.log mylogfile +#> 4 /tmp/Rtmp9bus6U/rotor/mylogfile.2019-06.log mylogfile #> sfx ext size isdir mode mtime -#> 1 2019-05-31_07-00-41 log 26 FALSE 664 2019-05-31 07:00:41 -#> 2 2019-05-31--07-00-41 log 26 FALSE 664 2019-05-31 07:00:41 -#> 5 20190531T070041 log 26 FALSE 664 2019-05-31 07:00:41 -#> 3 2019-05-31 log 26 FALSE 664 2019-05-31 07:00:41 -#> 4 2019-05 log 26 FALSE 664 2019-05-31 07:00:41 +#> 1 2019-06-17_09-55-55 log 26 FALSE 664 2019-06-17 09:55:55 +#> 2 2019-06-17--09-55-55 log 26 FALSE 664 2019-06-17 09:55:55 +#> 5 20190617T095555 log 26 FALSE 664 2019-06-17 09:55:55 +#> 3 2019-06-17 log 26 FALSE 664 2019-06-17 09:55:55 +#> 4 2019-06 log 26 FALSE 664 2019-06-17 09:55:55 #> ctime atime uid gid uname grname -#> 1 2019-05-31 07:00:41 2019-05-31 07:00:41 1000 1000 hoelk hoelk -#> 2 2019-05-31 07:00:41 2019-05-31 07:00:41 1000 1000 hoelk hoelk -#> 5 2019-05-31 07:00:41 2019-05-31 07:00:41 1000 1000 hoelk hoelk -#> 3 2019-05-31 07:00:41 2019-05-31 07:00:41 1000 1000 hoelk hoelk -#> 4 2019-05-31 07:00:41 2019-05-31 07:00:41 1000 1000 hoelk hoelk +#> 1 2019-06-17 09:55:55 2019-06-17 09:55:55 1000 1000 hoelk hoelk +#> 2 2019-06-17 09:55:55 2019-06-17 09:55:55 1000 1000 hoelk hoelk +#> 5 2019-06-17 09:55:55 2019-06-17 09:55:55 1000 1000 hoelk hoelk +#> 3 2019-06-17 09:55:55 2019-06-17 09:55:55 1000 1000 hoelk hoelk +#> 4 2019-06-17 09:55:55 2019-06-17 09:55:55 1000 1000 hoelk hoelk #> timestamp -#> 1 2019-05-31 07:00:41 -#> 2 2019-05-31 07:00:41 -#> 5 2019-05-31 07:00:41 -#> 3 2019-05-31 00:00:00 -#> 4 2019-05-01 00:00:00 -

If we examine the “timestamp” column in the example above, we see that missing date information is always interpreted as the start of the period; i.e. so "2019-01" is equivalent to "2019-01-01--00--00--00" for all intentds and purposes.

+#> 1 2019-06-17 09:55:55 +#> 2 2019-06-17 09:55:55 +#> 5 2019-06-17 09:55:55 +#> 3 2019-06-17 00:00:00 +#> 4 2019-06-01 00:00:00 +

If we examine the “timestamp” column in the example above, we see that missing date information is always interpreted as the start of the period; i.e. so "2019-01" is equivalent to "2019-01-01--00--00--00" for all intents and purposes.

prune_backups(tf, max_backups = 0)  # cleanup
 list_backups(tf)
 #> character(0)
@@ -198,7 +198,7 @@

  • R6: A light weight system for encapsulated object-oriented programming.
  • -dint: A toolkit for working year-quarter and year-month dates that I am also the author of. It is used by rotate_date() and rotate_time() to deal with calendar periods.
  • +dint: A toolkit for working year-quarter and year-month dates that I am also the author of. It is used by rotate_date() and rotate_time() to deal with calendar periods (such as weeks or months).

    Both packages have no transitive dependencies (i.e they do not depend on anything outside of base R)

    diff --git a/docs/news/index.html b/docs/news/index.html index 6b5cf32..5960f66 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 @@ -100,9 +100,9 @@

    Changelog

    -
    +

    -rotor 0.2.2.9000 Unreleased +rotor 0.2.3 Unreleased

    • Changed default behaviour of rotate_date(), rotate_time(), etc…: If no backups exist of target file, use the “created” timestamp to determine whether rotation should take place or not.
    • @@ -145,7 +145,7 @@

      Contents

      diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index b9cd434..6668538 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,5 +1,5 @@ pandoc: 2.3.1 pkgdown: 1.3.0.9100 -pkgdown_sha: 2b8150dacfcdad662773c77eb3866901695fa8e0 +pkgdown_sha: b281d6e6f930eda1b7839c317211eb67f1259b04 articles: [] diff --git a/docs/reference/BackupQueue.html b/docs/reference/BackupQueue.html index 30c350f..7597d79 100644 --- a/docs/reference/BackupQueue.html +++ b/docs/reference/BackupQueue.html @@ -70,7 +70,7 @@ rotor - 0.2.2.9000 + 0.2.3
      diff --git a/docs/reference/backup_info.html b/docs/reference/backup_info.html index 336aaa6..7c4bde9 100644 --- a/docs/reference/backup_info.html +++ b/docs/reference/backup_info.html @@ -65,7 +65,7 @@ rotor - 0.2.2.9000 + 0.2.3

    @@ -178,15 +178,16 @@

    Examp backup(tf) backup(tf) -backup_info(tf)

    #> path name sfx ext size isdir -#> 1 /tmp/RtmpJz3VIN/test2ae7695f43cd.1.rds test2ae7695f43cd 1 rds 282 FALSE -#> 2 /tmp/RtmpJz3VIN/test2ae7695f43cd.2.rds test2ae7695f43cd 2 rds 282 FALSE -#> mode mtime ctime atime uid gid -#> 1 664 2019-05-31 07:00:45 2019-05-31 07:00:45 2019-05-31 07:00:45 1000 1000 -#> 2 664 2019-05-31 07:00:45 2019-05-31 07:00:45 2019-05-31 07:00:45 1000 1000 -#> uname grname index -#> 1 hoelk hoelk 1 -#> 2 hoelk hoelk 2
    list_backups(tf)
    #> Error in list_backups(tf): could not find function "list_backups"
    n_backups(tf)
    #> [1] 2
    newest_backup(tf)
    #> [1] "/tmp/RtmpJz3VIN/test2ae7695f43cd.1.rds"
    oldest_backup(tf)
    #> [1] "/tmp/RtmpJz3VIN/test2ae7695f43cd.2.rds"
    +backup_info(tf)
    #> path name sfx ext size isdir mode +#> 1 /tmp/Rtmp3pLPpS/teste8f19723988.1.rds teste8f19723988 1 rds 282 FALSE 664 +#> 2 /tmp/Rtmp3pLPpS/teste8f19723988.2.rds teste8f19723988 2 rds 282 FALSE 664 +#> mtime ctime atime uid gid uname +#> 1 2019-06-17 09:55:59 2019-06-17 09:55:59 2019-06-17 09:55:59 1000 1000 hoelk +#> 2 2019-06-17 09:55:59 2019-06-17 09:55:59 2019-06-17 09:55:59 1000 1000 hoelk +#> grname index +#> 1 hoelk 1 +#> 2 hoelk 2
    list_backups(tf)
    #> [1] "/tmp/Rtmp3pLPpS/teste8f19723988.1.rds" +#> [2] "/tmp/Rtmp3pLPpS/teste8f19723988.2.rds"
    n_backups(tf)
    #> [1] 2
    newest_backup(tf)
    #> [1] "/tmp/Rtmp3pLPpS/teste8f19723988.1.rds"
    oldest_backup(tf)
    #> [1] "/tmp/Rtmp3pLPpS/teste8f19723988.2.rds"
    # cleanup prune_backups(tf, 0) n_backups(tf)
    #> [1] 0
    file.remove(tf)
    #> [1] TRUE
    diff --git a/docs/reference/index.html b/docs/reference/index.html index d25d991..09dec02 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -62,7 +62,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/docs/reference/rotate.html b/docs/reference/rotate.html index 0cc1b51..5253fc3 100644 --- a/docs/reference/rotate.html +++ b/docs/reference/rotate.html @@ -69,7 +69,7 @@ rotor - 0.2.2.9000 + 0.2.3 @@ -306,21 +306,25 @@

    Examp # create two backups of `tf`` backup(tf) backup(tf) -list_backups(tf) # find all backups of a file
    #> Error in list_backups(tf): could not find function "list_backups"
    +list_backups(tf) # find all backups of a file
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.1.rds" +#> [2] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.2.rds"
    # If `size` is set, a backup is only created if the target file is at least # that big. This is more useful for log rotation than for backups. backup(tf, size = "100 mb") # no backup becuase `tf` is to small -list_backups(tf)
    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.1.rds" +#> [2] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.2.rds"
    # If `dry_run` is TRUE, backup() only shows what would happen without # actually creating or deleting files -backup(tf, size = "0.1kb", dry_run = TRUE)
    #> [dry_run] renaming:
    #> [dry_run] ~ /tmp/RtmpJz3VIN/test2ae72ba8e5c.2.rds -> test2ae72ba8e5c.3.rds -#> [dry_run] ~ /tmp/RtmpJz3VIN/test2ae72ba8e5c.1.rds -> test2ae72ba8e5c.2.rds
    #> [dry_run] copying:
    #> [dry_run] + /tmp/RtmpJz3VIN/test2ae72ba8e5c.rds -> test2ae72ba8e5c.1.rds
    +backup(tf, size = "0.1kb", dry_run = TRUE)
    #> [dry_run] renaming:
    #> [dry_run] ~ /tmp/Rtmp3pLPpS/teste8f2e69b8ff.2.rds -> teste8f2e69b8ff.3.rds +#> [dry_run] ~ /tmp/Rtmp3pLPpS/teste8f2e69b8ff.1.rds -> teste8f2e69b8ff.2.rds
    #> [dry_run] copying:
    #> [dry_run] + /tmp/Rtmp3pLPpS/teste8f2e69b8ff.rds -> teste8f2e69b8ff.1.rds
    # rotate() is the same as backup(), but replaces `tf`` with an empty file rotate(tf) -list_backups(tf)
    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] 0
    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.1.rds" +#> [2] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.2.rds" +#> [3] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.3.rds"
    #> [1] 0
    #> [1] 282 282 282
    # prune_backups() can remove old backups prune_backups(tf, 1) # keep only one backup -list_backups(tf)
    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.1.rds"
    # rotate/backup_date() adds a date instead of an index # you should not mix index backups and timestamp backups # so we clean up first @@ -337,12 +341,12 @@

    Examp # `now` overrides the current date. backup_date(tf, age = "1 year", now = "2999-12-31") -list_backups(tf)

    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.2999-12-31.rds"
    # backup_time() creates backups with a full timestamp backup_time(tf) # It's okay to mix backup_date() and backup_time() -list_backups(tf)
    #> Error in list_backups(tf): could not find function "list_backups"
    #> [1] "/tmp/Rtmp3pLPpS/teste8f2e69b8ff.2999-12-31.rds"
    # cleanup prune_backups(tf, 0) file.remove(tf)
    #> [1] TRUE
    diff --git a/docs/reference/rotor-package.html b/docs/reference/rotor-package.html index b6412f8..3a4c1fc 100644 --- a/docs/reference/rotor-package.html +++ b/docs/reference/rotor-package.html @@ -67,7 +67,7 @@ rotor - 0.2.2.9000 + 0.2.3 diff --git a/revdep/.gitignore b/revdep/.gitignore new file mode 100644 index 0000000..31f6c40 --- /dev/null +++ b/revdep/.gitignore @@ -0,0 +1,6 @@ +checks +library +checks.noindex +library.noindex +data.sqlite +*.html diff --git a/revdep/email.yml b/revdep/email.yml new file mode 100644 index 0000000..0c5cef8 --- /dev/null +++ b/revdep/email.yml @@ -0,0 +1,5 @@ +release_date: ??? +rel_release_date: ??? +my_news_url: ??? +release_version: ??? +release_details: ???