Skip to content

Commit ea04458

Browse files
committed
prep for release, fixed code coverage
1 parent d43ff2f commit ea04458

18 files changed

+290
-55
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
language: R
44
sudo: false
55
cache: packages
6+
after_success:
7+
- Rscript -e 'covr::codecov()'

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: rotor
33
Title: Log Rotation and Conditional Backups
4-
Version: 0.2.0.9000
4+
Version: 0.2.1
55
Authors@R:
66
person(given = "Stefan",
77
family = "Fleck",
@@ -10,7 +10,7 @@ Authors@R:
1010
comment = c(ORCID = "0000-0003-3344-9851"))
1111
Maintainer: Stefan Fleck <[email protected]>
1212
Description: Conditionally rotate or back-up files based on their size or the
13-
date of the last backup; inspired by the 'linux' utility 'logrotate'.
13+
date of the last backup; inspired by the 'Linux' utility 'logrotate'.
1414
License: MIT + file LICENSE
1515
Imports:
1616
tools,

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# rotor 0.2.0.9000
1+
# rotor 0.2.1 (2019-05-15)
22

33
* added examples to `rotate()` documentation
44
* `dry_run` status is now tracked internally instead of a potentially user
5-
modifyable `option()`.
5+
modifiable `option()` (it was never designed to be user modifiable anyways).
66
* Track test coverage with covr
77
* Added a `NEWS.md` file to track changes to the package.

README.Rmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ knitr::opts_chunk$set(
2121
<!-- badges: end -->
2222

2323
**rotor** provides a cross platform R reimagination of
24-
[logrotate](https://linux.die.net/man/8/logrotate) as a companion package to
25-
https://github.com/s-fleck/lgr. In addition to rotating log files, it can also
26-
be used as a (primitive) backup tool. For conditionally creating and deleting
27-
backups, rotor relies solely on information encoded in the filename suffix of
28-
the backups (i.e. the timestamp or index). It therefore also works with backups
29-
created by other tools, as long as the filename has a format that rotor can deal
30-
with.
24+
[logrotate](https://linux.die.net/man/8/logrotate) as a companion package to the
25+
logging package [lgr](https://github.com/s-fleck/lgr). In addition to rotating
26+
log files, it can also be used as a (primitive) backup tool. For conditionally
27+
creating and deleting backups, rotor relies solely on information encoded in a
28+
suffix of the backup file names (i.e. a timestamp or index). It therefore also
29+
works with backups created by other tools, as long as the filename has a format
30+
that rotor can deal with.
3131

3232
`rotate()`, `rotate_date()`, and `rotate_time()` move a file and insert a
3333
suffix (either an integer or a timestamp) into the filename. In addition, they

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ coverage](https://codecov.io/gh/s-fleck/rotor/branch/master/graph/badge.svg)](ht
1515

1616
**rotor** provides a cross platform R reimagination of
1717
[logrotate](https://linux.die.net/man/8/logrotate) as a companion
18-
package to <https://github.com/s-fleck/lgr>. In addition to rotating log
19-
files, it can also be used as a (primitive) backup tool. For
20-
conditionally creating and deleting backups, rotor relies solely on
21-
information encoded in the filename suffix of the backups (i.e. the
22-
timestamp or index). It therefore also works with backups created by
23-
other tools, as long as the filename has a format that rotor can deal
24-
with.
18+
package to the logging package [lgr](https://github.com/s-fleck/lgr). In
19+
addition to rotating log files, it can also be used as a (primitive)
20+
backup tool. For conditionally creating and deleting backups, rotor
21+
relies solely on information encoded in a suffix of the backup file
22+
names (i.e. a timestamp or index). It therefore also works with backups
23+
created by other tools, as long as the filename has a format that rotor
24+
can deal with.
2525

2626
`rotate()`, `rotate_date()`, and `rotate_time()` move a file and insert
2727
a suffix (either an integer or a timestamp) into the filename. In
@@ -79,8 +79,8 @@ backup(tf, compression = TRUE)
7979

8080
# display backups of a file
8181
list_backups(tf)
82-
#> [1] "/tmp/Rtmpe34fYM/rotor/mylogfile.1.log.zip"
83-
#> [2] "/tmp/Rtmpe34fYM/rotor/mylogfile.2.log"
82+
#> [1] "/tmp/RtmpZygTcn/rotor/mylogfile.1.log.zip"
83+
#> [2] "/tmp/RtmpZygTcn/rotor/mylogfile.2.log"
8484
```
8585

8686
`rotate()` also makes a copy, but replaces the original file with an
@@ -89,9 +89,9 @@ empty one.
8989
``` r
9090
rotate(tf)
9191
list_backups(tf)
92-
#> [1] "/tmp/Rtmpe34fYM/rotor/mylogfile.1.log"
93-
#> [2] "/tmp/Rtmpe34fYM/rotor/mylogfile.2.log.zip"
94-
#> [3] "/tmp/Rtmpe34fYM/rotor/mylogfile.3.log"
92+
#> [1] "/tmp/RtmpZygTcn/rotor/mylogfile.1.log"
93+
#> [2] "/tmp/RtmpZygTcn/rotor/mylogfile.2.log.zip"
94+
#> [3] "/tmp/RtmpZygTcn/rotor/mylogfile.3.log"
9595

9696
# the original file is now empty
9797
readLines(tf)
@@ -113,10 +113,10 @@ backup(tf, max_backups = 4)
113113
backup(tf, max_backups = 4)
114114

115115
list_backups(tf)
116-
#> [1] "/tmp/Rtmpe34fYM/rotor/mylogfile.1.log"
117-
#> [2] "/tmp/Rtmpe34fYM/rotor/mylogfile.2.log"
118-
#> [3] "/tmp/Rtmpe34fYM/rotor/mylogfile.3.log"
119-
#> [4] "/tmp/Rtmpe34fYM/rotor/mylogfile.4.log.zip"
116+
#> [1] "/tmp/RtmpZygTcn/rotor/mylogfile.1.log"
117+
#> [2] "/tmp/RtmpZygTcn/rotor/mylogfile.2.log"
118+
#> [3] "/tmp/RtmpZygTcn/rotor/mylogfile.3.log"
119+
#> [4] "/tmp/RtmpZygTcn/rotor/mylogfile.4.log.zip"
120120
```
121121

122122
We can also use `prune_backups()` to delete old backups. Other than
@@ -135,8 +135,8 @@ timestamped backups.
135135
backup_date(tf)
136136
rotate_time(tf)
137137
list_backups(tf)
138-
#> [1] "/tmp/Rtmpe34fYM/rotor/mylogfile.2019-05-15--08-33-07.log"
139-
#> [2] "/tmp/Rtmpe34fYM/rotor/mylogfile.2019-05-15.log"
138+
#> [1] "/tmp/RtmpZygTcn/rotor/mylogfile.2019-05-15--14-01-51.log"
139+
#> [2] "/tmp/RtmpZygTcn/rotor/mylogfile.2019-05-15.log"
140140
```
141141

142142
``` r

cran-comments.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99

1010
0 errors | 0 warnings | 1 note
1111

12+
* Resubmission
13+
* Added examples to the documentation of rotate() and co.
1214
* This is a new release.

docs/404.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)