rubenarslan / codebook

Cook rmarkdown codebooks from metadata on R data frames
https://rubenarslan.github.io/codebook/
Other
142 stars 16 forks source link

Document how to generate PDF #57

Open nalimilan opened 3 years ago

nalimilan commented 3 years ago

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.
BroVic commented 3 years ago

Thanks for posting this issue. It solved my problem.