codebook icon indicating copy to clipboard operation
codebook copied to clipboard

Document how to generate PDF

Open nalimilan opened this issue 4 years ago • 1 comments

I tried knitting the example .Rmd file generated by new_codebook_rmd() and I got an error (see below). It took me some time (I had to look at the source code for the tutorial actually) to realize that I need to pass metadata_json=FALSE, metadata_table=FALSE for PDF generation to work. It could be useful to mention this in the documentation and in a comment in the generated file.

Very useful package BTW!

Error : Functions that produce HTML output found in document targeting latex output.
Please change the output type of this document to HTML. Alternatively, you can allow
HTML output in non-HTML formats by adding this option to the YAML front-matter of
your rmarkdown file:

  always_allow_html: true

Note however that the HTML output will not be visible in non-HTML formats.

nalimilan avatar Dec 08 '20 18:12 nalimilan

Thanks for posting this issue. It solved my problem.

BroVic avatar Dec 18 '20 15:12 BroVic