ascii (version 2.4)

print,asciiCbind-method: Print ascii object

Description

Function displaying the asciidoc, txt2tags, reStructuredText, org or textile code associated with the supplied object of class ascii.

Usage

# S4 method for asciiCbind
print(
  x,
  type = getOption("asciiType"),
  file = NULL,
  append = FALSE,
  escape = FALSE,
  list.escape = c("\\_", "\\^"),
  ...
)

# S4 method for asciiCbind show(object)

# S4 method for asciiTable print( x, type = getOption("asciiType"), file = NULL, append = FALSE, escape = FALSE, list.escape = c("\\_", "\\^"), ... )

# S4 method for asciiTable show(object)

# S4 method for asciiList print( x, type = getOption("asciiType"), file = NULL, append = FALSE, escape = FALSE, list.escape = c("\\_", "\\^"), ... )

# S4 method for asciiList show(object)

# S4 method for asciiMixed print( x, type = getOption("asciiType"), file = NULL, append = FALSE, escape = FALSE, list.escape = c("\\_", "\\^"), ... )

# S4 method for asciiMixed show(object)

# S4 method for Report print(x, help = FALSE, ...)

# S4 method for Report show(object)

Arguments

x

An object of class "asciiTable", "asciiList", "asciiMixed", "asciiCbind" or "Report".

type

Type of syntax produce. Possible values for type are "asciidoc", "t2t", "rest", "org", "textile" or "pandoc". Default value produce asciidoc syntax.

file

A character string naming the file to print to. Default is NULL (print to the console).

append

If TRUE, code will be appended to file instead of overwriting it. Default value is FALSE

escape

If TRUE, characters in list.escape will be be printed with a \. Default value is FALSE

list.escape

Character vector. Default value is c("\\_", "\\^")

...

Additional arguments. (Currently ignored.)

object

ascii or Report object

help

logical print help? (objects of class "Report")

Author

David Hajage dhajage@gmail.com

Details

The package provides the new global option asciiType. Default value is "asciidoc" (see examples).

See Also

ascii

Examples

Run this code
data(esoph)
ascii(esoph[1:10,])
print(ascii(esoph[1:10,]), type = "t2t")
print(ascii(esoph[1:10,]), type = "rest")
print(ascii(esoph[1:10,]), type = "org")
print(ascii(esoph[1:10,]), type = "textile")
print(ascii(esoph[1:10,]), type = "pandoc")
options(asciiType = "rest")
ascii(esoph[1:10,])
options(asciiType = "asciidoc")

Run the code above in your browser using DataLab