Resource

Resources are files that support the component. The first resource should be a script that will be executed when the component is run. Additional resources will be copied to the same directory.

Common properties:

Example:

resources:
  - type: r_script
    path: script.R
  - type: file
    path: resource1.txt

dest

Type: String

Default: Empty

Resulting filename of the resource. From within a script, the file can be accessed at meta["resources_dir"] + "/" + dest. If unspecified, dest will be set to the basename of the path parameter.

is_executable

Type: Boolean

Default: Empty

Whether the resulting resource file should be made executable.

path

Type: String

Default: Empty

The path of the input file. Can be a relative or an absolute path, or a URI. Mutually exclusive with text.

text

Type: String

Default: Empty

The content of the resulting file specified as a string. Mutually exclusive with path.

type

Type: String

Specifies the type of the resource. The first resource cannot be of type file. When the type is not specified, the default type is simply file.