README.md

decumar

Decumar is a tool for interleaving latex and R. It uses specially formatted comment blocks, so your file is always valid latex.

Decumar is similar to sweave, but comes from a slightly different heritage. As well as deriving inspiration from literate programming, it also draws ideas from code generation. Why should you use decumar instead of sweave?

Basic format

Decumar blocks look like this:

% BLOCKTYPE
%   OPTION1: value 1
%   OPTION2: value 2
%
% a <- 10
% a + b

latex

Decumar expects the following in your preamble:

\usepackage{alltt}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png,.pdf}
\graphicspath{{graphics-path/}}

blocks

Decumar currently supports the following block types:



hadley/decumar documentation built on May 17, 2019, 9:56 a.m.