This issue seems related to what has been reported previously (issue #75 - last comment) and in the pull request ('Add a flag to omit the output of commented call when using latex'). It does not resolve (for me) by using `KnitrSet()' .
I attach a reproducible example below (to be compiled as an rmd file):
---
title: "Hmisc::summaryM - latex call in knitr output"
author: ""
date:
output:
pdf_document: default
abstract: 'Example demonstrating latex call being included in pdf output when using Hmisc::latex on summaryM table.'
---
Dear Prof. Harrel.
I am currently experiencing an issue when using latex on a summaryM object and producing pdf output. The latex call is included in the text:
%latex.default(cstats, title = title, file = file, append = TRUE, caption = finalcaption, rowlabel = rowlabel, table.env = (!tabenv1 && table.env) || (tabenv1 && istr == 1), col.just = col.just, numeric.dollar = FALSE, insert.bottom = finallegend, rowname = lab, dcolumn = dcolumn, extracolheads = extracolheads, extracolsize = NNsize, insert.top = if (strat != “.ALL.”) strat, ...)%
This issue seems related to what has been reported previously (issue #75 - last comment) and in the pull request ('Add a flag to omit the output of commented call when using latex'). It does not resolve (for me) by using `KnitrSet()' .
I attach a reproducible example below (to be compiled as an rmd file):
Without 'knitrSet'
With 'knitrSet' (makes no difference to this particular problem)