Learn R Programming

mcp (version 0.3.1)

print.mcptext: Nice printing texts

Description

Useful for print(fit$jags_code), print(mcp_demo$call), etc.

Usage

# S3 method for mcptext
print(x, ...)

Arguments

x

Character, often with newlines.

...

Currently ignored.

Examples

Run this code
# NOT RUN {
mytext = "line1 = 2\n line2 = 'horse'"
class(mytext) = "mcptext"
print(mytext)
# }

Run the code above in your browser using DataLab