Learn R Programming

lazyWeave (version 2.1.4)

lazy.insert.code: Insert Code to a TeX Document

Description

Places TeX code from a file into a TeX document. Text is placed within a verbatim environment

Usage

lazy.insert.code(file, prompt.symbol=options()$prompt, lines)

Arguments

file
Filename containing the code to be inserted.
prompt.symbol
Character to be placed at the left most side of the page. Defaults to the system's current prompt symbol.
lines
A vector giving the lines in file to be inserted into the document.

Details

Text is inserted in a verbatim environment to preserve whitespace. This function is performed better by Sweave and knitr. Those packages will also display any result printed by the code. This function will not display results.