Initialize a director object.

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

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'". })