Rmarkdown:关闭标题 [英] Rmarkdown: Turn off title

查看:102
本文介绍了Rmarkdown:关闭标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何关闭 Rmd HTML 文档中的标题?

---标题: ""输出:html_document---rmarkdown::render("index.Rmd")

<块引用>

[警告] 此文档格式需要一个非空元素.请在元数据中指定title"或pagetitle".回退到'index.utf8'

寻找一种快速简单的修复方法,而无需修改底层模板.

解决方案

这会创建一个空白页面.

---标题:&nbsp;"输出:html_document---

How do I turn off the title in an Rmd HTML document?

---
title: ""
output: html_document
---

rmarkdown::render("index.Rmd")

[WARNING] This document format requires a nonempty element. Please specify either 'title' or 'pagetitle' in the metadata. Falling back to 'index.utf8'

Looking for a quick easy fix without having to modify the underlying template.

解决方案

This creates a blank page.

---
title: "&nbsp;"
output: html_document
---

这篇关于Rmarkdown:关闭标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆