R markdown compile error:

后端 未结 3 1854
你的背包
你的背包 2021-01-12 07:18

When I try to compile an Rmarkdown document to pdf, I get this error:

    Error: Functions that produce HTML output found in document targeting latex output.         


        
3条回答
  •  感动是毒
    2021-01-12 07:48

    You need to choose what format you want to KNIT to, tried to look at mine.

    ---
    title: ""
    subtitle: "[binary.com](https://github.com/englianhu/binary.com-interview-question) Interview Question I"
    author: "[®γσ, Lian Hu](https://englianhu.github.io/)  白戸則道®"
    date: "`r Sys.Date()`"
    output:
      tufte::tufte_html:
        toc: yes
      tufte::tufte_handout:
        citation_package: natbib
        latex_engine: xelatex
      tufte::tufte_book:
        citation_package: natbib
        latex_engine: xelatex
    link-citations: yes
    ---
    

提交回复
热议问题