View source: R/delete_backup.R
| delete_backup | R Documentation |
Delete backups after a particular position in a versioned dataset
delete_backup(destination, after_position, verbose = FALSE)
destination |
a local directory path or an arrow SubTreeFileSystem |
after_position |
how many backups should we leave in the dv? |
verbose |
TRUE /FALSE should the function be chatty? |
TRUE
temp_dir <- tempfile()
dir.create(temp_dir, recursive = TRUE)
df <- data.frame(a = 1:5, b = letters[1:5])
for(i in 1:10) {put_backup(df, temp_dir)}
# before
list.files(file.path(temp_dir, "backup"))
delete_backup(temp_dir, 4L)
# after
list.files(file.path(temp_dir, "backup"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.