repo_set {repo} | R Documentation |
Edit an existing item.
Description
Edit an existing item.
Usage
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
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)
[Package repo version 2.1.5 Index]