Skip to content

Commit

Permalink
put policy comparions in a separate pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
kleuveld committed Oct 31, 2023
1 parent 28e9f50 commit de35923
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 47 deletions.
Binary file added assets/policy_comparisons.pdf
Binary file not shown.
76 changes: 76 additions & 0 deletions assets/policy_comparisons.rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
title: "RDM Policy Comparisons"
author: "FSW Data Steward"
date: '`r format(Sys.time(), "%d %B %Y")`'
geometry: margin=2cm
output:
pdf_document:
toc: true
---

<!---
This document prints out policy comparisons between FSW policy and the (inter)national policies
to a PDF file. The pdf output is uploaded to the VU website, and linked to in the FSS RDM Guidelines.
It processes data from two tables, that should both be in the same folder as this one:
- policy_comparisons_meta.csv: information about the policies
- policy_comparisons.csv: point-by-point comparisons
-->



```{r, include=FALSE}
library(tidyverse)
library(kableExtra)
comparisons <-
read_csv("policy_comparisons.csv")
meta <-
read_csv("policy_comparisons_meta.csv")
render_table <- function(foldheaders = T){
for (i in 1:nrow(meta)){
cat(paste("\\pagebreak\n\n"))
if (foldheaders) {
cat("<details>\n\n")
cat(paste("<summary><b>",meta$code_name[i]),"</b></summary>\n\n")
} else {
cat(paste("# ",meta$code_name[i]),"\n\n")
}
cat(paste("**Date:**",meta$code_date[i],"\n\n"))
cat(paste("**Last reviewed:**",meta$accessed_on[i],"\n\n"))
cat(paste("**URL:**",meta$url[i],"\n\n"))
comparisons %>%
filter(id == meta$id[i]) %>%
select(code,fsw) %>%
kable(col.names = c(meta$short_name[i],"FSS"),escape = F,
booktabs = T ,
longtable=T,
position = "h") %>%
column_spec(1,width="8.5cm") %>%
column_spec(2,width="8.5cm") %>%
kable_styling(latex_options = "repeat_header") %>%
kable_styling(latex_options = "striped") %>%
print()
cat("\n")
if (foldheaders) {
cat("</details>\n\n")
}
}
}
```


```{r, echo=F, message = FALSE, results="asis"}
render_table(foldheaders=F)
```
3 changes: 3 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ Make sure all links are defined here so that they can be easily updated.
[fss-new-project]: new-rdm.html


[policy-comparisons]: assets/policy_comparisons.pdf


<!-- VU-wide Resources -->

[libguide]: https://libguides.vu.nl/rdm
Expand Down
48 changes: 1 addition & 47 deletions pages/05_02_01_fss_guidelines_rdm.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ File history can be found in the git repo: https://github.com/vu-fss/rdm

As a faculty committed to excellence in the quality of the research our staff and students undertake, it is essential to have guidelines on good practice in Research Data Management (RDM) as part of our framework to support the integrity of our research. These FSS guidelines serve both as a means of developing and supporting a culture of good practice in data management and demonstrating that we are committed to a culture and environment where high standards are encouraged and expected.

The purpose of these guidelines is to reduce work pressure by condensing the various, and often conflicting, regulations into one cohesive set of procedures that ensure maximum compliance. Details on the various underlying policies can be found in the appendix below.
The purpose of these guidelines is to reduce work pressure by condensing the various, and often conflicting, regulations into one cohesive set of procedures that ensure maximum compliance. Details on the various underlying policies, and how they're reflected in these guidelines, can be found [here][policy-comparisons].

## Stepping stones for good data management

Expand Down Expand Up @@ -97,49 +97,3 @@ These guidelines apply to all faculty staff members who conduct research in the
print_more_resources()
```

## Appendix: Underlying policies

The list below contains the regulations that these guidelines are based on. Since there are often conflicts between the regulations, the list includes a comparison between each item and these guidelines, so that any deviation from the regulation is made explicit.

```{r, include=FALSE}
comparisons <-
read_csv("assets/policy_comparisons.csv")
meta <-
read_csv("assets/policy_comparisons_meta.csv")
render_table <- function(foldheaders = T){
for (i in 1:nrow(meta)){
if (foldheaders) {
cat("<details>\n\n")
cat(paste("<summary><b>",meta$code_name[i]),"</b></summary>\n\n")
} else {
cat(paste("### ",meta$code_name[i]),"\n\n")
}
cat(paste("**Date:**",meta$code_date[i],"\n\n"))
cat(paste("**Last reviewed:**",meta$accessed_on[i],"\n\n"))
cat(paste("**URL:**",meta$url[i],"\n\n"))
comparisons %>%
filter(id == meta$id[i]) %>%
select(code,fsw) %>%
kable(col.names = c(meta$short_name[i],"FSS"),striped = T,escape = F) %>%
print()
cat("\n")
if (foldheaders) {
cat("</details>\n\n")
}
}
}
```

```{r, echo=F, message = FALSE, results="asis"}
render_table(foldheaders=T)
```

0 comments on commit de35923

Please sign in to comment.