One convenient way to share research details is through a public website that includes all the information needed to reproduce the project. You will do this for your final project.
Today we will make a copy of a template for your final project, edit it, and ‘push’ it back up to your github account. You can check out the template code at https://github.com/AdamWilsonLab/RDataScience_Project and the template website at http://adamwilson.us/RDataScience_Project/
library(rmarkdown)
library(knitr)
Steps:
Now you will make a local copy on your computer by creating a new project and ‘cloning’ the repository you just forked.
https://github.com/AdamWilsonLabEDU/geo503-finalproject-adammwilson
but with your username.RDataScience_Project
~/Documents/repos
or wherever you want to put it.index.Rmd
file.Build
tab in the upper right corner of RStudio, then click Build Website
_site.yml
. These adjust the appearance, title, etc._navbar.yml
. These settings define the menus, etc. If you only have one page you probably won’t need to adjust this information.Git
tab in the upper right and notice how it keeps track of any changes.commit
.Commit
, then close
.Push
to push it back up to GitHub.https://github.com/AdamWilsonLabEDU/geo503-finalproject-adammwilson
GitHub Pages
sectionmaster branch /docs folder
and click Savehttps://github.com/AdamWilsonLabEDU/geo503-finalproject-adammwilson
) and find the line “No description, website, or topics provided” and click “Edit” on the right as shown in the following figure. https://github.com/AdamWilsonLabEDU/geo503-finalproject-adammwilson
.commit
and then push
your updates from RStudio and your website will be updated. If you get tired of entering your username and password every time, check out the instructions here.kable()
function for tables (e.g. kable(head(d))
)Abandoning the habit of secrecy in favor of process transparency and peer review was the crucial step by which alchemy became chemistry.Raymond, E. S., 2004, The art of UNIX programming: Addison-Wesley.