Skip to content

Commit d3ede29

Browse files
author
Stefan Fleck
committed
doc
1 parent 98938c1 commit d3ede29

File tree

7 files changed

+41
-6
lines changed

7 files changed

+41
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
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.4.9003
4+
Version: 0.2.4.9004
55
Authors@R:
66
person(given = "Stefan",
77
family = "Fleck",

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# rotor (dev version)
1+
# rotor 0.2.5
22

33
* Improved some error messages
44
* Added `rotate_rds()`, `rotate_rds_time()`, and `rotate_rds_date()` as a
55
replacement for `base::saveRDS()` that supports creating backups instead of
66
just overwriting the destination file.
7-
* added `Cache`, an R6 class for managing cache directories
7+
* added `Cache`, an R6 class for managing cache directories. The `Cache` API
8+
is still experimental and might change.
89
* **breaking** R6 API: renamed some methods and active fields of BackupQueue to
910
more universal names:
1011
- `$push_backup()` -> `$push()`

R/BackupQueue.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ BackupQueue <- R6::R6Class(
116116

117117

118118
# ... setters -------------------------------------------------------------
119+
#' Set the file to be backed up
120+
#' @param x a `character` scalar. Path to a file
119121
set_origin = function(
120122
x
121123
){
@@ -129,6 +131,8 @@ BackupQueue <- R6::R6Class(
129131
},
130132

131133

134+
#' Set the file to be backed up
135+
#' @param x a `character` scalar. Path to a file
132136
set_compression = function(
133137
x
134138
){
@@ -401,6 +405,10 @@ BackupQueueIndex <- R6::R6Class(
401405
},
402406

403407

408+
#' @description Increment die Indices of all backups by `n` Usually does
409+
#' not have to be called manually.
410+
#'
411+
#' @param n `integer` > 0
404412
increment_index = function(
405413
n = 1
406414
){
@@ -433,6 +441,7 @@ BackupQueueIndex <- R6::R6Class(
433441

434442
# ... getters -------------------------------------------------------------
435443
active = list(
444+
436445
files = function(){
437446
res <- super$files
438447
if (nrow(res) < 1)

R/Cache.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CacheQueue --------------------------------------------------------------
1+
# Cache ----------------------------------------------------------------
22

33
#' An R6 class for managing a persistent file-based cache
44
#'
@@ -112,7 +112,7 @@ Cache <- R6::R6Class(
112112
invisible(NULL)
113113
},
114114

115-
#' @description Read anr remove a single file from the cache
115+
#' @description Read and remove a single file from the cache
116116
#' @param key `character` scalar. key of the cached file to read/remove
117117
pop = function(
118118
key

man/BackupQueue.Rd

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/BackupQueueIndex.Rd

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Cache.Rd

Lines changed: 1 addition & 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)