Archived repo
This repository has been superseeded by https://github.com/WarwickRUG/WarwickRUG.github.io Any new development to WRUG's website will take place there, and this one will be archived.
Warwick R User Group website, created using Distill
.
Some icons obtained from Reshot.
git clone git@github.com:WarwickRUG/wrug_website.git
renv
if not already installed (instructions here).renv::restore()
to restore the state of your project from renv.lock
.renv::snapshot()
to update renv.lock
.renv.lock
changes and push it to the repo.Add new blog posts
distill::create_post("<date_your title>", draft = TRUE)
where <date_your title>
will be replaced with an actual date in yyy-mm-dd format and any meaningful title which will be the blog post's url.draft = TRUE
to draft = FALSE
(or just comment the line) so the post can be displayed.knitr::knit(<your filename>)
or use RStudio's interface.Edit an existing blog post
rmarkdown::render_site()
to render a local copy of the website. (this will only deploy any rendered site)If facing issues installing packages from Windows, run this command. (more info in renv
documentation and in this discussion)
Sys.setenv(RENV_DOWNLOAD_METHOD = "libcurl")
Make sure that you knit your content after editing your .Rmd
file, otherwise, it will not show in the new site when rendering and deploying the site. The advantage of this approach is that older blog posts don't break if you update your R packages or dependencies and don't want to update the posts. If you don't fancy re-knitting every time you make a change, then you can write an ordinary markdown post
Thanks goes to these wonderful people (emoji key):
Carlos CΓ‘mara π» π |
Heather Turner π¬ |
David Selby π¬ π |
Aditi Shenvi π» |
James Tripp π» |
This project follows the all-contributors specification. Contributions of any kind welcome!