Learn R Programming

repo (version 2.1.7)

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

Description

Remove item from the repo (and the disk).

Usage

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

Value

Used for side effects.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab