repo_export {repo}R Documentation

Export repo items to RDS file.

Description

Export repo items to RDS file.

Usage

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

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)

[Package repo version 2.1.5 Index]