我正在创建一个带有重标记的Ioslides_presentation。出于一个很好的理由,我已经将YAML头中的运行时选项从闪亮更改为shiny_prerendered。但是,我注意到在这样做之后,输出不会在YAML头中选择我的自定义css选项。
IE,这个YAML标题工作,并获得CSS罚款。
title: "Transformers"
author: "StarScream"
runtime: shiny
output:
ioslides_presentation:
incremental: true
widescreen: true
css: foo.css
logo: Decepticons.png
self_contained: false但是,这个YAML头不会获取css (在更改运行时之后)。
title: "Transformers"
author: "StarScream"
runtime: shiny_prerendered
output:
ioslides_presentation:
incremental: true
widescreen: true
css: foo.css
logo: Decepticons.png
self_contained: false有人能帮我解决这个问题吗?
发布于 2022-07-06 13:22:00
当使用shiny_prerendered运行时,CSS必须特别位于根目录中名为CSS的文件夹中。
在最后一节中的更多细节:https://rmarkdown.rstudio.com/authoring_shiny_prerendered.html#External_Resources
https://stackoverflow.com/questions/60683439
复制相似问题