【发布时间】:2022-11-27 01:36:36
【问题描述】:
由于 chrome_print arugment 没有以正确的语法方式使用,因此将下面的 YAML 标头与文件的其余部分一起使用空白,不会呈现。我怎样才能正确使用这个论点?
---
title: "A Multi-page HTML Document"
author: "Yihui Xie and Romain Lesur"
date: "`r Sys.Date()`"
output: pagedown::html_paged
knit: pagedown::chrome_print(timeout=50)
---
来自 Pagedown documentation 和 here 它讨论了使用 chrome_print() 使用无头 chrome 打印渲染文档......但我无法正确应用此参数来强制渲染过程超过默认的 30 秒。
尝试渲染时出现以下错误
syntax error near unexpected token `timeout=50'
谢谢!
【问题讨论】:
标签: html google-chrome yaml r-markdown knitr