Thank you for the interesting package RAPPORT. I want to create a rapport table in a R Markdown document using RStudio but it passes the knitr commands instead of creating html code for table. It works when I run commands one by one in R command line.
Here is the Markdown code chunk:
{r t, cache=FALSE }
rpt = rapport.html('Descriptives.tpl', data=chrt.patients, var="RACE",file.name="Race",file.path="c://hdds//work//california//R Analysis/tmp")
Here is its output when I compile R Markdown using knitrHtml button:
<p> "## Description" attr(,"class") [1] "knit_asis" attr(,"knit_cacheable") [1] TRUE[1] "template will return descriptive statistics of a numerical or frequency table of a categorical variable."
Here is the output when I execute code line by line and have the right results:
<h2 id="description">Description</h2>
<p>This template will return descri\ptive statistics of a numerical or frequency table of a categorical variable.</p>
<h3 id="race"><em>RACE</em></h3>