Rmarkdown ioslides: output file in folder and dependencies in others

I am trying to draw a presentation of ioslides rmarkdown on a jekyll website, so I need a renderfile .Rmdin a folder _postsin the main directory of my website.

But images cannot be placed in this folder, so I put them in a folder images.

My problem is that when I rendermy .Rmdall dependencies are placed in the same folder as the output file.

I tried using self_contained: falseand then passing the following arguments knitr, but that didn't work.

knitr::opts_chunk$set(fig.path = "/images/")
+4
source share
1 answer

fig.path . base.dir :

knitr::opts_chunk$set(base.dir = "/images/")
0

Source: https://habr.com/ru/post/1626237/


All Articles