Adds a new resource to the KiProject. The resource can be a remote or local file or directory. If the resource already exists it will be updated with the provided parameters.

data_add(ki_project, remote_uri_or_local_path, name = NULL,
  version = NULL, data_type = NULL)

Arguments

ki_project

a Ki Project obtained from ki_project

remote_uri_or_local_path

The remote URI (e.g., syn:syn123456) or local path of the directory for file.

name

A user friendly name for the resource.

version

The version of the file to add.

data_type

The DataType of the file. This is only required when a remote_uri is provided and the remote

Value

KiProjectResource

Note

This can be used in either of the following ways:

ki_project$data_add(...)
data_add(ki_project, ...)