View source: R/new_datapackage.R
new_datapackage | R Documentation |
Create a new Data Package
new_datapackage(path, name = NULL, title = NULL, description = NULL, ...)
path |
The directory which will contain the Data Package or the filename in which to write the Data Package. |
name |
The name of the Data Package. |
title |
The title of the Data Package. |
description |
The description of the Data Package. |
... |
Ignored for now. |
The directory of path
, or the directory containing path
if path
is a file name, is created and the file with the Data Package information is
created. When path
is a directory a file datapackage.json
is
created. The function returns an editable datapackage
object.
dir <- tempdir()
dp <- new_datapackage(dir, name = "test-package")
dp_title(dp) <- "A Test Data Package"
dp_add_contributor(dp) <- new_contributor(title = "John Doe")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.