newdatapackage: Create a new Data Package

View source: R/newdatapackage.R

newdatapackageR Documentation

Create a new Data Package

Description

Create a new Data Package

Usage

newdatapackage(path, name = NULL, title = NULL, description = NULL, ...)

Arguments

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.

Value

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.

Examples

dir <- tempdir()
dp <- newdatapackage(dir, name = "test-package")

dptitle(dp) <- "A Test Data Package"
dpaddcontributor(dp) <- newcontributor(title = "John Doe")




djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.