boxuancui / DataExplorer

Automate Data Exploration and Treatment
http://boxuancui.github.io/DataExplorer/
Other
512 stars 88 forks source link

Error with create_report() and PDF #145

Closed bitbacchus closed 4 years ago

bitbacchus commented 4 years ago

I just discovered your package and I am totally excited! Very nice and useful, indeed :-)

I just have trouble creating a PDF report. I tried like so:

DataExplorer::create_report(
        data = iris,
        output_format = pdf_document(),
        output_file = "report.pdf"
)

and the error I got

[...]
  |....................................................................  |  98%
  ordinary text without R code

  |......................................................................| 100%
label: plot_by_scatterplot

output file: ~/report.knit.md

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.

Do you have any hint for me? I don't have a rmarkdown file where I could change the YAML header, do I?

Thanks in advance!

bitbacchus commented 4 years ago

Whatever happened that I posted the issue twice... Sorry, #146