-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
107 lines (82 loc) · 3.71 KB
/
README.Rmd
File metadata and controls
107 lines (82 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
cache = FALSE,
screenshot.opts = list(vwidth = 2000, vheight = 600, zoom = 3, selector = "div.html-widget")
)
```
# dsROCrate: 'DataSHIELD' RO-Crate Governance Functions <img src="man/figures/logo.png" alt="logo" align="right" height="200" style="float:right; height:200px;"/>
<!-- badges: start -->
[](https://CRAN.R-project.org/package=dsROCrate)
[](https://github.com/FederatedMethods/dsROCrate/actions/workflows/R-CMD-check.yaml)
<!-- [](https://app.codecov.io/gh/FederatedMethods/dsROCrate) -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
## Overview
`{dsROCrate}` provides tools to capture, structure and audit DataSHIELD analyses using the RO-Crate standard.
It enables reproducible governance of federated analyses by packaging inputs, outputs, metadata, and audit information into a consistent, portable format.
## Key Features
* Create RO-Crates for DataSHIELD workflows
* Capture project metadata, data references and analysis outputs
* Record and audit disclosure control processes
* Support reproducibility and governance in federated environments
## Installation
You can install the released version of `{dsROCrate}` from [CRAN](https://cran.r-project.org/package=dsROCrate) with:
``` r
install.packages("dsROCrate")
```
And the development version from [GitHub](https://github.com/FederatedMethods/dsROCrate/) with:
``` r
# install.packages("pak")
pak::pak("FederatedMethods/dsROCrate@dev")
```
## Quick Start
```{r quick_start, eval = FALSE}
# open connection
con <- opalr::opal.login(
username = "administrator",
password = "password",
url = "https://opal-demo.obiba.org"
)
# generate RO-Crate with Five Safes components
crate <- con |>
# initialise RO-Crate
dsROCrate::init(project = "CNSIM", tables = "CNSIM1", user = "dsuser") |>
# extract Five Safes components
dsROCrate::safe_people() |>
dsROCrate::safe_project() |>
dsROCrate::safe_data() |>
dsROCrate::safe_setting() |>
dsROCrate::safe_output()
# generate report
dsROCrate::report(crate, title = "DataSHIELD Five Safes report")
```
Alternatively, the `dsROCrate::audit()` function can be used to generate an audit with
all the Five Safes components:
```{r, eval = FALSE}
proj_audit <- opalr::opal.login(
username = "administrator",
password = "password",
url = "https://opal-demo.obiba.org"
) |>
dsROCrate::audit(project = "CNSIM", tables = "CNSIM1", user = "dsuser")
# generate report
dsROCrate::report(proj_audit, title = "DataSHIELD Safe People - Audit Report")
```
## Learn More
For further details, see the following vignette:
```{r, eval = FALSE}
vignette("getting-started", package = "dsROCrate")
```
## Identity
You are welcome to use any of the following hex codes when referencing `{dsROCrate}`:
[<img src="man/figures/logo.png" alt="logo" align="left" height="150" style="float:left; height:150px;"/>](man/figures/logo.png)
[<img src="man/figures/logo_white.png" alt="logo-white" align="left" height="150" style="float:left; height:150px;"/>](man/figures/logo_white.png)
[<img src="man/figures/logo_black.png" alt="logo-black" align="left" height="150" style="float:left; height:150px;"/>](man/figures/logo_black.png)