Learn R Programming

pepr (version 0.3.2)

activateAmendments: Activate amendments in objects of "'>Project"

Description

This method switches between the amendments within the "'>Project" object

Usage

activateAmendments(.Object, amendments)

# S4 method for Project,character activateAmendments(.Object, amendments)

Arguments

.Object

an object of class "'>Project"

amendments

character with the amendment name

Methods (by class)

  • .Object = Project,amendments = character: activate amendments in a "'>Project" object

Details

To check what are the amendments names call listAmendments(p), where p is the object of "'>Project" class

Examples

Run this code
# NOT RUN {
projectConfig = system.file("extdata",
"example_peps-master",
"example_amendments1",
"project_config.yaml",
package = "pepr")
p = Project(file = projectConfig)
availAmendments = listAmendments(p)
activateAmendments(p,availAmendments[1])
# }

Run the code above in your browser using DataLab