Learn R Programming

spork (version 0.3.5)

explicit.spork: Make Spork Explicit

Description

Makes spork explicit. For every section as indicated by line breaks, it supplies dots to close open scripts. Explicit spork can be concatenated more easily. One generally wants to avoid breaking lines within active sub- and super scripts.

Usage

# S3 method for spork
explicit(x, ...)

Value

spork

Arguments

x

character

...

passed arguments

See Also

Other explicit: explicit()

Examples

Run this code
s <- c(
  'Work_out\\nx^y\\n',
  '\\nkg/m^2/S^2'
)
explicit(as_spork(s))

Run the code above in your browser using DataLab