writeCode: Write Generated Code

Description Usage Arguments Value See Also

Description

Write the generated code to a file and return the code.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
writeCode(code, file, ...)

## S4 method for signature 'GeneratedCode,logical'
writeCode(code, file, overWrite = FALSE,
  prefix = "gen_")

## S4 method for signature 'GeneratedCode,missing'
writeCode(code, file, ...)

## S4 method for signature 'GeneratedCode,character'
writeCode(code, file, overWrite = FALSE,
  ...)

Arguments

code

object of class GeneratedCode

file

character name of the file to write the generated script. If FALSE then don't write anything to disk. If TRUE and code comes from a file then use prefix to make a new name and write a script.

...

additional arguments to methods

overWrite

logical write over existing file

prefix

character prefix for generating file names

Value

expression R language object, suitable for further manipulation

See Also

generate to generate the code from a schedule, makeParallel to do everything all at once.


makeParallel documentation built on May 2, 2019, 9:40 a.m.