You can install Slidify, write a three page slide deck and publish it to Github, all in less than 5 minutes!
|2||Edit||Write in RMarkdown, separating slides with a blank line followed by three dashes
Note. You will need to create an empty repo on github and replace USER and REPO with your github username and reponame.
Slidify is not on CRAN as yet and needs to be installed from
github. You can use Hadley's
devtools package to accomplish this easily. You will also need
slidifyLibraries which contains all external libraries required by Slidify.
library(devtools) install_github('slidify', 'ramnathv') install_github('slidifyLibraries', 'ramnathv')
This step will create a new directory
mydeck and add the necessary scaffolding. If you have
git installed, it will initialize it a
git repo, checkout its
gh-pages branch, add and commit everything. Finally, it will open
index.Rmd for you to edit.
Edit the YAML front matter (if you don't know what it is, just replace everything to the right of the
: in the lines between the
--- right at the top). Edit the deck, making sure to separate your slides by a blank line followed by three dashes
This step generates a html slide deck from
index.Rmd. It is a static file, which means that you can open it in your browser locally and it should display fine.
Now is the magical step of publishing your deck to
github. You have three options:
Login with your github account and create a new repository. Note that Github will prompt you to add a README file, but just use the defaults so that your repo is empty. You will need to have
git installed on your computer and be able to push to
github using SSH
# replace USER and REPO with your username and reponame publish(user = "USER", repo = "REPO", host = 'github')
publish('mydeck', host = 'dropbox')