crane
Supplement to functions found in the {gtsummary} R package
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Keywords
gt
r
reproducible-research
summary-statistics
Last synced: 9 months ago
·
JSON representation
Repository
Supplement to functions found in the {gtsummary} R package
Basic Info
- Host: GitHub
- Owner: insightsengineering
- Language: R
- Default Branch: main
- Homepage: https://insightsengineering.github.io/crane/
- Size: 6.65 MB
Statistics
- Stars: 5
- Watchers: 5
- Forks: 2
- Open Issues: 17
- Releases: 1
Topics
gt
r
reproducible-research
summary-statistics
Created over 1 year ago
· Last pushed 9 months ago
Metadata Files
Readme
Changelog
Contributing
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# crane
[](https://app.codecov.io/gh/insightsengineering/crane)
The {crane} package provides supplementary functions to the {gtsummary} specifically for trial reporting in the pharmaceutical industry.
## Installation
You can install {crane} with the following code.
``` r
install.packages("crane")
```
Install the development version with `pak::pak("insightsengineering/crane")`
## Examples
The package exports a gtsummary theme for reporting at Roche.
The theme sets function defaults to meet reporting requirements at Roche, making it simpler programmers to achieve the desired results without setting too many arguments.
The package also exports a wrapper for the `gtsummary::tbl_summary()` function with defaults more suited to reporting at Roche.
```{r example}
library(crane)
theme_gtsummary_roche()
tbl <- trial |>
tbl_roche_summary(by = trt, include = c(age, grade), nonmissing = "always")
```
```{r tbl_print_simple, include = FALSE}
# Had to manually save images in temp file, not sure if better way.
gt::gtsave(as_gt(tbl), file = "man/figures/README-tbl_print_simple-1.png")
```
```{r out.width = "40%", echo = FALSE}
knitr::include_graphics("man/figures/README-tbl_print_simple-1.png")
```
The package also exports functions for Roche adverse event reporting, functions for shift tables, and others.
Owner
- Name: Roche/Genentech - Insights Engineering
- Login: insightsengineering
- Kind: organization
- Location: Switzerland
- Website: https://code4life.roche.com/
- Repositories: 53
- Profile: https://github.com/insightsengineering
Roche/Genentech - Insights Engineering
GitHub Events
Total
- Create event: 39
- Release event: 1
- Issues event: 84
- Watch event: 4
- Delete event: 32
- Issue comment event: 188
- Push event: 1,399
- Pull request review comment event: 182
- Pull request review event: 194
- Pull request event: 71
- Fork event: 1
Last Year
- Create event: 39
- Release event: 1
- Issues event: 84
- Watch event: 4
- Delete event: 32
- Issue comment event: 188
- Push event: 1,399
- Pull request review comment event: 182
- Pull request review event: 194
- Pull request event: 71
- Fork event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| ddsjoberg | 2****g | 109 |
| Abinaya Yogasekaram | 7****m | 6 |
| Emily de la Rua | e****a@c****m | 3 |
| cicdguy | 2****y | 2 |
| Davide Garolini | d****i@g****m | 2 |
| Franciszek Walkowiak | f****k@r****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 52
- Total pull requests: 75
- Average time to close issues: 15 days
- Average time to close pull requests: 7 days
- Total issue authors: 6
- Total pull request authors: 4
- Average comments per issue: 0.79
- Average comments per pull request: 3.16
- Merged pull requests: 58
- Bot issues: 1
- Bot pull requests: 0
Past Year
- Issues: 52
- Pull requests: 75
- Average time to close issues: 15 days
- Average time to close pull requests: 7 days
- Issue authors: 6
- Pull request authors: 4
- Average comments per issue: 0.79
- Average comments per pull request: 3.16
- Merged pull requests: 58
- Bot issues: 1
- Bot pull requests: 0
Top Authors
Issue Authors
- ddsjoberg (43)
- khatril (3)
- edelarua (3)
- ayogasekaram (2)
- github-actions[bot] (1)
- huanlugwu (1)
Pull Request Authors
- ddsjoberg (52)
- ayogasekaram (12)
- edelarua (7)
- Melkiades (5)
Top Labels
Issue Labels
sme (8)
documentation (2)
release (1)
enhancement (1)
Pull Request Labels
sme (13)
enhancement (1)
bug (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 191 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: crane
Supplements the 'gtsummary' Package for Pharmaceutical Reporting
- Homepage: https://github.com/insightsengineering/crane
- Documentation: http://cran.r-project.org/web/packages/crane/crane.pdf
- License: Apache License 2.0
-
Latest release: 0.2.0
published 9 months ago
Rankings
Dependent packages count: 27.2%
Dependent repos count: 33.4%
Average: 49.2%
Downloads: 87.1%
Maintainers (1)
Last synced:
9 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/check.yaml
actions
.github/workflows/cla.yaml
actions
.github/workflows/docs.yaml
actions
.github/workflows/post-release.yaml
actions
.github/workflows/recheck.yml
actions
.github/workflows/release.yaml
actions
.github/workflows/scheduled.yaml
actions
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- gtsummary >= 2.0.3 depends
- dplyr * imports
- gt * imports
- rlang * imports