View source: R/newdatapackage.R
newdatapackage | R Documentation |
Create a new Data Package
newdatapackage(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 <- newdatapackage(dir, name = "test-package")
dptitle(dp) <- "A Test Data Package"
dpaddcontributor(dp) <- newcontributor(title = "John Doe")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.