if you want to write in R notebooks and combine authorea, here are the steps:
  1. First create a notebook and add something.
  2. If your paper will have images, get some images off the web and get started first
  3. Add citations. Do all the three in Authorea first.
  4. Then create a github connection.
  5. From your Rstudio, add the R notebook to your github repo
  6. Pull and push
Here is an image I am going to add: