Using the below YAML header with the rest of the file blank, doesn't render, due to issue with chrome_print arugment not used in a proper syntax way. How can I correctly use this argument?
---
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)
---
from the Pagedown documentation and here it discusses using chrome_print() to print rendered documents using headless chrome... but I am not able to correctly apply this argument to force the rendering process to go over the default 30 seconds.
I get the error below when attempting to render
syntax error near unexpected token `timeout=50'
Thank you!

Try this way,
Now, why do we need to wrap
pagedown::chrome_printinside a function to use thetimeoutargument and then wrap the whole function inside a parenthesis?From the section 17.5 of Rmarkdown Cookbook, Customizing the knit button,