1

I'm using knitr 1.6.10 in R 3.1.1. The chunk option code seems like does not work. My MWE in .Rnw format is below:

\documentclass{article} \begin{document} << packages, include=FALSE, cache=FALSE>>= library(knitr) library(formatR) @ <<test, code=formatR::usage(lm), eval=FALSE>>= @ \end{document} 

Previously this function was working (See here) but it is not working even-though formatR::usage(lm) working outside chunk code.

1 Answer 1

1

The answer you mentioned has stated that the formatR version must be >= 0.10.3, which is a development version.

devtools::install_github('yihui/formatR') 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.