options(htmltools.dir.version = FALSE) knitr::opts_chunk$set( fig.width=9, fig.height=3.5, fig.retina=3, out.width = "100%", cache = FALSE, echo = FALSE, message = FALSE, warning = FALSE, fig.show = TRUE, hiline = TRUE )
library(xaringanthemer) style_mono_accent( base_color = "#2369bd", header_font_google = google_font("Playfair"), text_font_google = google_font("Roboto", "300", "300i"), code_font_google = google_font("Fira Mono"), text_font_size = "13pt", header_h1_font_size = "30pt", header_h2_font_size = "24pt", header_background_content_padding_top = "0rem", )
.pull-left[
.left[.small[This image was created by Scriberia for The Turing Way community and is used under a CC-BY licence (DOI 10.5281/zenodo.3332807).]]]
--
.pull-right[
Research compendia
R packages
Code on github https://github.com/selinaZitrone/YoMos2020
Slides on https://selinazitrone.github.io/YoMos2020/index.html
How-To on https://selinazitrone.github.io/YoMos2020/how_to.html
]
--
--
--
--
.pull-left[
.left[.small[This image was created by Scriberia for The Turing Way community and is used under a CC-BY licence (DOI 10.5281/zenodo.3332807).]]
]
.pull-right[
This is a collection of all digital parts of a research project including data, code, texts (protocols, reports, questionnaires, metadata). The collection is created in such a way that reproducing all results is straight forward.
(Definition from The Turing Way)1
.footnote[ [1] Excursion to the TTW website
] ]
.pull-left[
stick with the conventions in your field
Keep data, methods and output separate
specify the computational environment
]
--
.pull-right[
License
VCS
Metadata
Archive
]
.footnote[ from Karthik Ram's talk at RStudio::conf 2019 ]
.pull-left[
.center[
]]
--
.pull-right[
rrtools
ProjectTemplate
prodigenr
workflowr
]
--
R CMD check
)--
--
usethis
: workflow package to automate tasks like project setup etc.pkgdown
: build a quick and easy website for your packagegoodpractice
: gives you advice about good
practices when building R packagestestthat
: add unit testing to your packageclass: inverse
.center[]
class: inverse
--
--
--
testthat
package (Hadley Wickham)class: inverse
--
.pull-left[
"If it hurts, do it more often" .right[(Martin Fowler)]
]
--
.pull-right[
shared code repository (e.g. on github)
push code frequently (every day)
automated builds and tests after each commit
immediate feedback if something doesn't work anymore
however, can be time consuming and might be overkill for small or solo projects ]
background-image: url('images/github-actions-with-text.jpg') background-position: 100% 50% background-size: 40%
--
--
--
--
--
--
usethis
package.right[.footer[.small[This image was created by Scriberiafor The Turing Way community
and is used under a CC-BY licence (DOI 10.5281/zenodo.3332807).]]]
class: inverse
R CMD check
Excursion to Karthik Ram's talk at RStudio::conf 2019
class: inverse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.