Provides the functionality to write LaTeX code from within R without having to learn LaTeX. Functionality also exists to create HTML and Markdown code. While the functionality still exists to write complete documents with lazyWeave, it is generally easier to do so with with markdown and knitr. lazyWeave's main strength now is the ability to design custom and complex tables for reporting results.
The motivation behind
lazyWeave was to reproducible reports among those R users who hadn't yet learned LaTeX. It was, in my opinion, a noble goal, but happened to coincide with the wiser efforts behind the development of the
rmarkdown packages. The development of these tools, which have become so common in the R community, have rendered most of the functionality of
So at this point, we may ask, "why
lazyWeave at all?" There are a handful of functions that I find quite useful still, and they can still be used in the
rmarkdown documents. The functions you'll likely find most useful are:
All of these functions are capable of producing output in LaTeX, HTML, and RMarkdown.
lazyWeave is somewhat similar to the
xtable package. What are the advantages of
lazyWeave? To be honest, there really aren't a lot. In fact,
xtable has quite a few more bells and whistles than
lazy.matrix. For instance, with
xtable you can turn column headings sideways, or use the
longtable package in
LaTeX. Eventually, I may add support for these features.
The only advantage
lazy.matrix has over
xtable is the ability to apply colors to the background of table rows.
The other advantage over
xtable is the ability to define multicolumn cells (in LaTeX and HTML only) when building custom tables with
Beyond those basics,
univ provide ready-made functionality for basic summaries with univariable comparisons. In fact, you may find that they are generally publication ready out of the box.
=== Version 3.0.0 === BACK COMPATIBILITY ISSUES
tbl_dfobjects in the
=== 20 May 2014 === Some bug fixes have been applied, and the html counters have been moved out of the Global environtment into an environment stored in options()$htmlCounters
=== 10 Sept 2012 ===
The HTML output is now complete. You can toggle between LaTeX and HTML output by using the command
options(lazyReportFormat="latex") or options(lazyReportFormat="html")
The default setting when the package is loaded is "latex"
The other addition to this update is the functions cattable, conttable, catconttable (all can be written to a report with write.ctable) and univ (write to a report with write.univ). I got more comments on my summary tables at UseR than I did on the package itself. So now they're available to anyone who wants them.
=== 18 June 2012 ===
Following the UseR presentation, I've decided to change my plans for this package a little. Instead of uploading a second package (referred to as lazyHTML), I will add the HTML functionality to lazyWeave. An option will be set when the package loads to determine if the output is LaTeX or HTML. This way, I only need to change the output option in options() in order to change the format of my reports.
Also, based on a number of requests, I will move the functions cattable, conttable, catconttable, and write.ctable into lazyWeave. These were the functions that produced the summary table that a number of people expressed interest in. This move may only be temporary. I may move them back into CCFmisc when I get that package ready for CRAN (that could take a little while though).