R表示-带web链接的参考css模板

R表示-带web链接的参考css模板,r,rstudio,knitr,r-markdown,R,Rstudio,Knitr,R Markdown,我正在创建一个R演示文稿,但我找不到一种方法来使用存储在网站上的css模板 这项工作: Title ======================================================== author: Me date: Jan 9, 2015 transition: none css: /Users/user/template.css 但这不起作用: Title =============================================

我正在创建一个R演示文稿,但我找不到一种方法来使用存储在网站上的css模板

这项工作:

 Title
 ========================================================
 author: Me
 date: Jan 9, 2015
 transition: none
 css: /Users/user/template.css

但这不起作用:

Title
========================================================
author: Me
date: Jan 9, 2015
transition: none
css: https://dl.dropboxusercontent.com/u/2364714/template.css


如果我将url放在引号中,或者如果我将文件移动到http而不是https链接,它也不起作用。

我以前在链接到https图像时遇到过问题。这可能就是问题所在

这对我有用。诀窍是:在ioslides_演示之后。这是YAML部分

output: 
 ioslides_presentation:
   css: https://dl.dropboxusercontent.com/u/.....

旁注:这是
~/template.css
不是相对路径。请使用相对于文档的路径。例如,如果您的文档是“/Users/user/foo.Rpres”,而您的CSS是“/Users/user/template.CSS”,那么
CSS:template.CSS
work?@Yihui-有什么建议吗?@user3874377没有。请按照Jonathan说的做:)@Yihiu我无法在本地存储.CSS文件,有没有办法通过web链接链接到.css?R演示文稿上似乎没有YAML元数据。这不是IOSU演示文稿@莎伦