想要在 Rmarkdown 中创建复选框,我找到了此链接,但试图避免乳胶。Rmarkdown 备忘单上没有复选框示例。但下面的代码是 markdown,但不渲染。
---
title: "Untitled"
author: "Daniel"
date: "6/13/2020"
output: html_document
---
```{r}
```
- [ ] Venus
- [x] Mars
Run Code Online (Sandbox Code Playgroud) 当我渲染 Rayshader 图形时,它会在我的 mac 上打开 Xquartz,没问题,但是如果我想将它包含在我的 Rmarkdown 文档中,它只显示代码,没有图形,该怎么办?我知道这是一个繁重的图形密集型渲染,但正在寻找任何提示。谢谢,下面是我的代码:
---
title: "rayshader"
author: "Daniel"
date: "6/16/2020"
output:
html_document:
self_contained: yes
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r cars}
library(rayshader)
#Here, I load a map with the raster package.
loadzip = tempfile()
download.file("https://tylermw.com/data/dem_01.tif.zip", loadzip)
localtif = raster::raster(unzip(loadzip, "dem_01.tif"))
unlink(loadzip)
#And convert it to a matrix:
elmat = raster_to_matrix(localtif)
elmat %>%
sphere_shade(texture = "desert") %>%
add_water(detect_water(elmat), color = "desert") %>%
add_shadow(ray_shade(elmat, zscale = 3), 0.5) %>%
add_shadow(ambient_shade(elmat), 0) %>%
plot_3d(elmat, zscale …Run Code Online (Sandbox Code Playgroud) 使用R Markdown中的包prettydoc,有模板,代码如下
---
title: Nineteen Years Later
author: Harry Potter
date: July 31, 2016
output:
prettydoc::html_pretty:
theme: cayman
highlight: github
---
Run Code Online (Sandbox Code Playgroud)
输出看起来像这样
想知道我在哪里能够改变超越的颜色,所以也许它可以从红色变为橙色或我声明的任何颜色。该标头的 .css 位于哪里?先感谢您