我有三个不同的rmd文件,我将这些文件编织到html输出(同一网站中的三个页面)。我希望每个页面共享相同的目录(因此也包括其他rmd文件的标头),我不能将所有内容都放在同一个rmd文件下,因为在浏览器中加载时间太长。因此,我需要将其分成3页。
# site.yml
name: "my-website"
navbar:
title: "Home"
left:
- text: "Page 1"
href: parte1.html
- text: "Page 2"
href: parte2.html
# index.rmd
---
title: " my file "
author: " me "
date: "26/02/2020"
output:
html_document:
toc: yes
toc_depth: 3
toc_float:
collapsed: yes
smooth_scroll: yes
word_document: default
---
# (same YAML for the two other rmd files: "Page 1" and "Page 2")