【发布时间】:2021-05-17 07:30:41
【问题描述】:
编织后可以预览下面的幻灯片,但是将幻灯片移动到其他地方后,图像不再显示。
---
title: "Journal club"
author: "Timing Liu"
date: "`r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: libs
css:
- default
- default-fonts
self_contained: true
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
<img src = 2021-01-19-23-07-58.png />
?moon_reader 的文档显示如下:
should not contain the string "/>" when it is written with the syntax <img src="PATH" />
我相信我的路径应该已经符合标准,因此我不确定为什么不呈现 html 图像。使用诸如 之类的降价语法加载的图像可以加载到独立幻灯片中的其他位置。
在装有最新 Xaringan 的 Windows 上尝试使用 Firefox 和 Chrome。
谢谢!
【问题讨论】:
-
你考虑过使用
knitr::include_graphics吗? -
我发现 html 在定位和格式方面更灵活。但你是对的,我应该试一试。
标签: r-markdown xaringan