initialize: Initialize a director object.

Description Usage Arguments Value Examples

Description

Initialize a director object.

Usage

1
initialize(root, project_name = "")

Arguments

root

character. The root directory for the director.

project_name

character. The name of the director project. Useful for error messages. For example, if a resource is not found, an error message to the effect of "no resource foo found in your project_name project" will be displayed.

Value

a director reference class object.

Examples

1
2
3
4
5
6
7
## Not run: 
director(tempdir())
director(tempdir(), "my project") # Error messages on using the director's
                                  # methods will now usually result in
                                  # the ending "in project 'my project'".

## End(Not run)

syberia/director documentation built on May 30, 2019, 10:40 p.m.