repo_rm: Remove item from the repo (and the disk).

Description Usage Arguments Value Examples

View source: R/repo_public.R

Description

Remove item from the repo (and the disk).

Usage

1
repo_rm(name = NULL, tags = NULL, force = F)

Arguments

name

An item's name.

tags

A list of tags: all items matching the list will be removed.

force

Don't ask for confirmation.

Value

Used for side effects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
rp_path <- file.path(tempdir(), "example_repo")
rp <- repo_open(rp_path, TRUE)
rp$put(1, "item1", "Sample item 1", "info")
rp$put(2, "item2", "Sample item 2", "info")
print(rp)
rp$rm("item1")
print(rp)

## wiping temporary repo
unlink(rp_path, TRUE)

repo documentation built on March 26, 2020, 8:25 p.m.