Learn R Programming

mcp (version 0.3.3)

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.

Author

Jonas Kristoffer Lindeløv jonas@lindeloev.dk

Examples

Run this code
mytext = "line1 = 2\n line2 = 'horse'"
class(mytext) = "mcptext"
print(mytext)

Run the code above in your browser using DataLab