The Places generator creates a new Places
-object, which is the class containing
all the app logic. The class is based on the R6 OO-system and
is thus reference-based with methods and data attached to each object, in
contrast to the more well known S3 and S4 systems.
If a _places.yml file exists in the root path. It will be read on initialization and add working paths found in the file to the stored paths.
A new 'Places'-object is initialized using the new()
method on the generator:
paths <- places$new() |
$add | |
Add or Update paths to the object | |
$get | |
Return stored paths by name | |
$names | |
Return the names of the stored paths | |
$rm | |
Remove stored paths | |
$filepath | |
Construct filepaths using stored paths as the root | |
$setwd | |
set working directory with a stored path | |