Adding content
The easiest way to add content is to use the AUTHOREA interface. Add a placeholder, tidy up the files in Github and then add R-scripts to change part of the content.
Add a figure
Whenever you have an R-Script that is producing a figure that you like to include into the manuscript, just save the figure at a place of your choice. Go to authorea and add this figure into the manuscript using the Insert/Figure
button. Authorea will then add all the information needed including the figure into a separate folder within the figures
folder. You can now change your R-script to overwrite the figure that was now added by authorea. Thus, whenever you re-run the R-script the newly produced figure will be automatically included into the manuscript as soon as you commit your changes to the GitHub repository.