Learn R Programming

osfr (version 0.1.1)

update_component: Update a component on the OSF

Description

This function updates the private/public status of a component. By default, the function turns a private component into a public component. This function simply wraps the update_project function as it has the same operations.

Usage

update_component(id, private = FALSE)

Arguments

id

OSF id (osf.io/XXXXX; just XXXXX)

private

Set project to private/public (default changes to public)

Value

Boolean, update success

See Also

update_project

Examples

Run this code
# NOT RUN {
update_component("12345")
# }

Run the code above in your browser using DataLab