repo_get: Retrieve an item from the repo.

Description Usage Arguments Value Examples

View source: R/repo_public.R

Description

Retrieve an item from the repo.

Usage

1
repo_get(name, enableSuggestions = T)

Arguments

name

An item's name.

enableSuggestions

If set to TRUE (default), enables some checks on name that are meant to gracefully handle errors and provide suggestions of similar names. If FALSE, the execution will be significantly faster in large repositories.

Value

The previously stored object, or its file system path for attachments.

Examples

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

## wiping temporary repo
unlink(rp_path, TRUE)

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