Learn R Programming

cabinets (version 0.6.0)

FileCabinet: R6 class for a cabinet

Description

Constructs an R6 class of FileCabinet. Objects of class FileCabinet contain information that is used by new_cabinet_proj() to create project directories.

Arguments

Public fields

name

cabinet name.

directory

the path to where future directories will be created, a string.

structure

the directory structure, a list.

Methods

Public methods

Method new()

Usage

FileCabinet$new(name, directory, structure)

Arguments

name

cabinet name.

directory

the path to where future directories will be created, a string.

structure

the directory structure, a list.

Details

Create a new `FileCabinet` object.

Returns

A cabinet object.

Examples

FileCabinet$new("test", "a/path",
                list(code = NULL, 'data/derived' = NULL, 'data/source' = NULL))

Method print()

Usage

FileCabinet$print()

Details

Print an object of class FileCabinet.

Method clone()

The objects of this class are cloneable with this method.

Usage

FileCabinet$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# NOT RUN {
## ------------------------------------------------
## Method `FileCabinet$new`
## ------------------------------------------------

FileCabinet$new("test", "a/path",
                list(code = NULL, 'data/derived' = NULL, 'data/source' = NULL))
# }

Run the code above in your browser using DataLab