我正在用r markdown编写文档。当我将其编织为pdf时,pdf不会显示作者姓名,而只会显示“ true”。
编织与html输出完美配合,除了在我看来应该可以使用。
---
title: "knitr will you work please?"
author:
name: John Smith
output: pdf_document
---
输出将显示
knitr will you work please?
true
不是
knitr will you work please?
John Smith
答案 0 :(得分:2)
应该是这样
---
title: "knitr will you work please?"
author: John Smith
output: pdf_document
---