How do I include external figures using relative paths?
I start my rmd file with:
knitr::opts_chunk$set(cache=F,echo=F)
knitr::opts_knit$set(root.dir = '/Users/dosc3612/odrive/CUDrive/real-time_interpolation',
child.path='/Users/dosc3612/odrive/CUDrive/real-time_interpolation')
and then include:
# Heading 1
some text referring to figure 1. ![Figure 1. a map from qgis](data/gis/fig1alt-location_map2.png)
my rmd file is in /Users/dosc3612/odrive/CUDrive/real-time_interpolation/reports/real-time so my understanding is it will look for figures out of that directory. But based on chunk options help(http://yihui.name/knitr/options/#package_options | https://goo.gl/6TL51m) I thought I could use child.path to set relative paths in the document but that does not appear to be the case.
“data/gis” is a subfolder in “/Users/dosc3612/odrive/CUDrive/real-time_interpolation”
thanks