## Not run:
# # Create fake data
# A <- B <- C <- sample(1:20, size = 20, replace = TRUE)
# ID <- sort(rep('a', 20))
# Data <- data.frame(ID, A, B, C)
#
# # Initialise data package with barebones, automatically generated metadata
# datapackage_init(df = Data, package_name = 'my-data-package')
#
# # Initialise with user specified metadata
# meta_list <- list(name = 'my-data-package',
# title = 'A fake data package',
# last_updated = Sys.Date(),
# version = '0.1',
# license = data.frame(type = 'PDDL-1.0',
# url = 'http://opendatacommons.org/licenses/pddl/'),
# sources = data.frame(name = 'Fake',
# web = 'No URL, its fake.'))
#
# datapackage_init(df = Data, meta = meta_list)
# ## End(Not run)
Run the code above in your browser using DataLab