16 November 2020
Easy guide to github for writing a journal article
by datarich(ard)
Step 1. Start a new github rep with the article title
Follow the directions here for integrating it with RStudio. In brief do the following:
- Create a new github repo on github
- Creating a new Rproj using File > New Project…
- Select the option for
Version Control: Checkout a project from a version control repository
.
- Follow the instructions to integrate the project with the github repo created in step 1.
Step 2. Enable pages for the new repo.
- Create a docs/ folder in the root.
- Place the html version of the paper into the new docs folder, using
index.html
as the filename
- Go to settings and enable Github Pages, using the
main
branch.
- Select the docs/ folder as the publishing source.
- Don’t forget to choose a sexy theme!
Now your paper is published at https://username.github.io/project-name/
tags: