EGAP methods guides
For now, please make an issue and/or fork and a pull request specifying the methods guide in question.
We use plain R+markdown for these guides. Since they are served in iFrames on http://egap.org links do not work so well. Because of that, we recommend using [Hello, world!](http://example.com/){target="_blank"}
when you insert links.
In RStudio, click "Knit to HTML".
At the R console do:
library(rmarkdown)
render("nameoffile.Rmd")
Once you have an html file, if you haven't already changed the links to open in a new tab do something like this at the command line to loop through all directories:
for X in */; do cd "$X"; sed -i.bak 's|href="http|target="_blank" href="http|g' *.html; cd ..; done
Or do this in a single directory:
sed -i.bak 's|href="http|target="_blank" href="http|g' *.html
To ensure that links are opened in a new tab write links like this [Hello, world!](http://example.com/){target="_blank"}