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/AdamWilsonLabEDU/geo511_project and the template website at https://adamwilsonlabedu.github.io/geo511_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://adamwilsonlabedu.github.io/GEO511_QuartoProjectTemplate/
but with your username.~/Documents
or wherever you
want to put it.index.Rmd
file.Build
tab in the upper right corner of
RStudio, then click Build Website
_quarto.yml
. These
adjust the appearance, title, etc. You can also change the default menu
organization if you want to add additional pages or other content. 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://adamwilsonlabedu.github.io/GEO511_QuartoProjectTemplate/
Pages
sectiongh-pages / (root) folder
and click
Savecommit
and then push
your
updates from RStudio and your website will be updated.The template is set up to compile remotely using GitHub actions. This will make sure that your code is reproducible.
The website is set up to use RENV to manage packages needed to run
your code. If you add any packages, you will also need to update the
renv file by running renv::snapshot()
and pushing the
changes to github. See https://rstudio.github.io/renv/articles/ci.html
for me.
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.