sectionfunctions: sectionfunctions

sectionfunctionsR Documentation

sectionfunctions

Description

An S4 class for functions that operate on sections or their parameters

Usage

## S4 method for signature 'sectionfunction'
initialize(
  .Object,
  fun = function(x) {     x },
  returnSection = TRUE,
  frames = integerSet()
)

sectionfunction(...)

runSectionFunction(input, inputFun, frameNumber)

Details

no convenient ways yet to add sectionfunctions to sections except manually.

Slots

fun

the name of a function or an function.

returnSection

logical. If TRUE the function in fun accepts and returns sections. If FALSE it accepts parameters like a normal R function and returns a named list of parameters.

frames

an integerSet object. Controls on which frames the function runs. The default behaviour is that it runs on all frames.

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.