create_package {frictionless} | R Documentation |
Create a Data Package
Description
Initiates a Data Package object, either from scratch or from an existing list. This Data Package object is a list with the following characteristics:
A
datapackage
subclass.All properties of the original
descriptor
.A
resources
property, set to an empty list if undefined.A
directory
property, set to"."
for the current directory if undefined. It is used as the base path to access resources withread_resource()
.
Usage
create_package(descriptor = NULL)
Arguments
descriptor |
List to be made into a Data Package object. If undefined, an empty Data Package will be created from scratch. |
Details
The function will run check_package()
on the created package to make sure
it is valid.
Value
Data Package object.
See Also
Other create functions:
create_schema()
Examples
# Create a Data Package
package <- create_package()
package
# See the structure of the (empty) Data Package
str(package)
[Package frictionless version 1.1.0 Index]