R for Reproducibility
  • Dr. D. Palleschi
  • Moodle
  1. Appendices
  2. A  Glossary
  • Preface
  • Conceptualisation
    • 1  Open Science Practices
    • 2  Reproducibility
    • 3  Documentation
  • Basic workflow
    • 4  RProjects
    • 5  Folder structure
    • 6  Writing reproducible code
    • 7  Code review
  • Research workflow
    • 8  Pre-registration
    • 9  Version control
    • 10  Storing results
  • Writing
    • 11  Publishing your analyses
    • 12  Writing it up
    • 13  Collaboration
  • 14  Summary
  • Exercises
    • 15  Exercises
  • References
  • Appendices
    • A  Glossary
    • B  Project setup
  1. Appendices
  2. A  Glossary

Appendix A — Glossary

library(tidyverse)
library(glossary)
glossary_path(here::here("glossary/glossary.yml"))
# glossary_persistent(TRUE)
x <-
  readr::read_delim(here::here("glossary/glossary.yml"), col_names = F, delim = "|") |> 
  mutate(col = rep(c("term", "definition"), times = 4)) |> 
  mutate(X1 = str_replace(X1, ': ', '')) |>
  mutate(X1 = str_trim(X1)) |> 
  mutate(col = as.factor(col)) |>
  select(-X2) 

glossary_table() |> as_tibble()
# A tibble: 0 × 0
References
B  Project setup
Source Code
# Glossary

```{r}
#| eval: true
library(tidyverse)
library(glossary)
glossary_path(here::here("glossary/glossary.yml"))
# glossary_persistent(TRUE)
```

```{r}
#| eval: true
x <-
  readr::read_delim(here::here("glossary/glossary.yml"), col_names = F, delim = "|") |> 
  mutate(col = rep(c("term", "definition"), times = 4)) |> 
  mutate(X1 = str_replace(X1, ': ', '')) |>
  mutate(X1 = str_trim(X1)) |> 
  mutate(col = as.factor(col)) |>
  select(-X2) 

glossary_table() |> as_tibble()
```