Learn R Programming

osfr (version 0.1.1)

create_component: Create a component within a project

Description

This function creates a new component within a project. New components can be created as private or public components using the private argument.

Usage

create_component(id, title, description = "", category = "project",
  private = TRUE)

Arguments

id

OSF id (osf.io/XXXXX; just XXXXX) of parent project

title

Title of the component [required]

description

Description of the component [optional]

category

Category of component, for valid categories see process_category, defaults to `project`

private

Boolean of whether the component is supposed to be private

Value

OSF id of created component

See Also

create_project

Examples

Run this code
# NOT RUN {
create_component("12345", "New Test Component")
# }

Run the code above in your browser using DataLab