Description Usage Arguments Value Examples
View source: R/replace_project.R
Create a new project with a specific ID, replacing a project with that ID if it exists.
1 | replace_project(owner_id, project_id, replace_project_req)
|
owner_id |
data.world user name of the project owner. |
project_id |
identifier to use for the new project, or identifier of existing project to replace with the newly created project. |
replace_project_req |
Request object of
type |
Object of type success_message
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | request <- dwapi::project_replace_request(
title='testproject', visibility = 'OPEN',
objective = 'Test project by R-SDK', tags = c('rsdk', 'sdk', 'arr'),
license = 'Public Domain')
request <- dwapi::add_file(request = request, name = 'file4.csv',
url = 'https://data.world/file4.csv')
## Not run:
dwapi::replace_project(create_project_req = request,
owner_id = 'user', project_id = 'projectid')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.