Bladeren bron

Updated README.md

Added documentation on how to solve issues on plotting.
wilsonfreitas 9 jaren geleden
bovenliggende
commit
4f2c5e29f7
1 gewijzigde bestanden met toevoegingen van 8 en 0 verwijderingen
  1. 8 0
      rmd_reader/Readme.md

+ 8 - 0
rmd_reader/Readme.md

@@ -66,3 +66,11 @@ The code below must be pasted inside the `.Rmd` file in order to correctly set t
 
 I usually paste it just after the Markdown header.
 There is a R [template](https://github.com/almartin82/pelicanRMD) available that has the base elements needed by `rmd_reader`.
+
+Alternatively, Rebecca Weiss (@rjweiss) suggested using `opts_chunk` to set knitr's `fig.path` ([link](http://rjweiss.github.io/articles/2014_08_25/testing-rmarkdown-integration/)).
+Now that can be done directly in `pelicanconf` thougth `RMD_READER_KNITR_OPTS_CHUNK`, that variable receives a `dict` with options to be passed to knitr's `opts_chunk`.
+
+```
+RMD_READER_KNITR_OPTS_CHUNK = {'fig.path': '../../../figure/'}
+```
+