我的Rmarkdown配置

2022-08-03  本文已影响0人  学生信的大叔

Rmarkdown,记不住安装配置过程,这里记录一下。不知道能不能存个性化模板,暂时没找到方法。这里把导出html的模板也备忘一下。

Rmarkdown 相关R包的安装:

install.packages("rmarkdown")
install.packages("tinytex")
tinytex::install_tinytex()
install.packages("rticles")

导出html的设置

---
title: "04_DEG"
author:
  - 你的名字
#documentclass: ctexart
keywords:
  - group_ids
output:
  html_document:
    toc: true
    toc_depth: 2  
    toc_float: true #左侧边栏悬停目录
    #number_sections: true #自动添加编号
    theme: journal
    highlight: zenburn #代码高亮
    #highlight: textmate
---

模板来源:第二章:https://bookdown.org/qiushi/rmarkdown-guide/html-document.html

上一篇 下一篇

猜你喜欢

热点阅读