Perform xglue operation on a template text

xglue(
  txt,
  envir = parent.frame(),
  open = "{",
  close = "}",
  pre.open = "<<",
  pre.close = ">>",
  block.open = "#<",
  block.close = "#>",
  enclos = parent.frame(),
  newline = "<<newline>>",
  just.pre = FALSE
)

Arguments

txt

The template text on which xglue operations shall be performed

envir

Environment or list that contains objects whose value is spliced in. By default the environment from which xglue is called.

open

the opening string of glue whiskers

close

the closing string of glue whiskers

pre.open

the opening string of glue whiskers when pre compiling pre blocks

pre.close

the closing string of glue whiskers when pre compiling pre blocks

block.open

start of a block's header line, by default "#<"

block.close

start of a block's trailer line by default "#>".

enclos

If envir is a list the enclosing environment.

just.pre

Just compile the pre blocks and return the resulting template.

Value

The glued text as a single character