repo_export: Export 'repo' items to RDS file.

Description Usage Arguments Value Examples

View source: R/repo_public.R

Description

Export repo items to RDS file.

Usage

1
repo_export(name, where = ".", tags = NULL, askconfirm = T)

Arguments

name

Name (or list of names) of the item/s to export.

where

Destination directory

tags

List of tags: all items tagged with all the tags in the list will be exported.

askconfirm

If T ask confirmation when exporting multiple items.

Value

TRUE on success, FALSE otherwise.

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", "export")
rp$export("item1", tempdir()) # creates item1.RDS in a tempdir

## wiping temporary repo
unlink(rp_path, TRUE)

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