【发布时间】:2019-12-27 16:50:53
【问题描述】:
您能帮我找到在 R flexdashboard 中打印 png 图像的正确代码吗?
这里是我的代码块:
---
title: "Analyse des installations PV - Les Vergers"
author: "Dario Santandrea"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
runtime: shiny
---
第一次尝试
renderImage({
outfile <- tempfile(fileext = "X:/LesVergers/Analyse/BilanSolaire/Figures/Solar_angle_scheme.png")
png(outfile, width = 500, height = 400)
dev.off()
}
)
第二次尝试
#knitr::include_graphics("X:/LesVergers/Analyse/BilanSolaire/Figures/Solar_angle_scheme.png")
我一直在尝试打印的图像不会简单地出现在 flexdashboard 中
【问题讨论】:
标签: png flexdashboard