repo_set: Edit an existing item.

Description Usage Arguments Value See Also Examples

View source: R/repo_public.R

Description

Edit an existing item.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
repo_set(
  name,
  obj = NULL,
  newname = NULL,
  description = NULL,
  tags = NULL,
  prj = NULL,
  src = NULL,
  chunk = NULL,
  depends = NULL,
  addtags = NULL,
  URL = NULL,
  buildURL = NULL
)

Arguments

name

An item name.

obj

An R object to replace the one currently associated with the item.

newname

Newname of the item.

description

Item's description.

tags

New item's tags as a list of character.

prj

New item's project as a list of character.

src

New item's provenance as a list of character.

chunk

New item's chunk name.

depends

List of item names indicating dependencies.

addtags

Tags to be added to current item's tags. Can not be used together with the parameter "tags".

URL

A character containing an URL where the item is supposed to be downloaded from.

buildURL

A character containing a base URL that is completed by postfixing the item's relative path. Useful to upload repositories online and make their items downloadable. The item's current URL is overwritten.

Value

Used for side effects.

See Also

repo_put

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", c("tag1", "tag2"))
rp$set("item1", obj=2)
print(rp$get("item1"))
rp$set("item1", description="Modified description", tags="new_tag_set")
rp$info("item1")

## wiping temporary repo
unlink(rp_path, TRUE)

franapoli/repo documentation built on May 17, 2021, 7:24 p.m.