osf_create | R Documentation |
Use osf_create_project()
to create a new top-level project on OSF. A nested
component can be created by providing an osf_tbl_node
containing an
existing project or component to osf_create_component()
's x
argument.
osf_create_project( title, description = NULL, public = FALSE, category = "project" ) osf_create_component( x, title, description = NULL, public = FALSE, category = NULL )
title, description |
Set a title (required) and, optionally, a description. |
public |
Logical, should it be publicly available ( |
category |
Character string, specify a category to change the icon
displayed on OSF. The defaults are
|
x |
An |
An osf_tbl_node
containing the new project or component.
Projects and components are both implemented as nodes on OSF. The only
distinction between the two is that a project is a top-level node, and a
component must have a parent node (i.e., must be a sub-component of another
project or component). Because projects and components are functionally
identical, osfr uses the same osf_tbl_node
class to represent both.
OSF Guides: Create a Project. https://help.osf.io/article/383-creating-a-project.
OSF Guides: Create a Component. https://help.osf.io/article/253-create-components.
## Not run: # create a new public project project <- osf_create_project(title = "Private OSF Project", public = TRUE) # add a private component to the new project component <- osf_create_component(project, title = "Project Data") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.