Skip to content

Commit 7f3d464

Browse files
authored
Archive package-related functionality (#314)
1 parent ecd53bb commit 7f3d464

66 files changed

Lines changed: 114 additions & 4375 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 6 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,12 @@
11
---
2-
name: 🔨 New Table Template
3-
description: Add a new table template
4-
title: "[New Table]: Table XX"
2+
name: 🔨 New TLG Template
3+
description: Add a new TLG template
4+
title: "[New TLG]: <title>"
55
labels: ["new template"]
66
projects: ["cardinal"]
77
body:
88
- type: textarea
9-
id: table-layout
109
attributes:
11-
label: Table Layout & Design
12-
description: Take a screenshot of the table and paste it here.
13-
value: |
14-
[Replace this line with your table screenshot by dragging the file here.]
15-
16-
Please refer to page XX of the [FDA guideline document](https://github.com/pharmaverse/cardinal/files/10744259/FDA-2022-N-1961-0002_attachment_1.pdf) for more details.
17-
- type: textarea
18-
id: table-description
19-
attributes:
20-
label: Table Description
21-
description: Full title/description of the table.
22-
placeholder: Table title
23-
- type: textarea
24-
id: analysis-datasets
25-
attributes:
26-
label: Analysis Datasets
27-
description: Datasets that are used to generate the table.
28-
value: |
29-
[List required datasets here]
30-
31-
Data from the `random.cdisc.data` package, can be retrieved by `random.cdisc.data::c` followed by your
32-
dataset name.
33-
- type: textarea
34-
id: analysis-filters
35-
attributes:
36-
label: Analysis Filters
37-
description: Filters applied to the data to generate the table.
38-
value: |
39-
Safety population: `SAFFL == "Y"`
40-
[List any additional filters here]
41-
- type: textarea
42-
id: additional-considerations
43-
attributes:
44-
label: Additional Information
45-
description: Any additional information that the developer should know before creating the table function.
46-
placeholder: Additional info
47-
- type: textarea
48-
id: todo
49-
attributes:
50-
label: Developer To Dos
51-
description: Steps to complete as a developer when creating your pull request.
52-
value: |
53-
- [ ] **Table Function:** Create `R/fda-table_XX.R` file with your table-generating function.
54-
- [ ] **Roxygen Documentation:** title, `@details`, document all parameters, `@return`, `@examples`, `@export`.
55-
- [ ] **Tests:** Create `tests/testthat/test-table_XX.R` file with tests for the table function and then run these tests.
56-
- [ ] **Quarto Template:** Create `quarto/table-templates/template-table_XX.qmd` file your table template.
57-
- [ ] **Screenshot:** Add table screenshot as `table_XX.png` to the `quarto/assets/images/screenshots` folder.
58-
- [ ] **_quarto.yml:** Add template to the "Template Library" section of the `_quarto.yml` file.
59-
- [ ] **Template Index:** Run `quarto/assets/generate-template_index.R` script to update the template index.
10+
label: TLG Title/Description
11+
description: Title and/or a description of the TLG.
12+
placeholder: TLG title/description

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Pull Request
22

3+
## GitHub Issue
34
<!--- Replace `#nnn` with your issue link for reference. -->
4-
55
Closes #nnn
6+
7+
## Include a Screenshot of the TLG
8+
9+
### Screenshot of TLG template from source document (e.g. FDA integrated guide)
10+
11+
TODO: Add screenshot here
12+
13+
## Developer To-Dos
14+
<!--- Steps to complete as a developer when creating your pull request. -->
15+
- [ ] Add quarto file `quarto/catalog/[TLG-ID]/index.qmd` with your TLG template.
16+
- [ ] Ensure that the _title_, _subtitle_, and _categories_ fields at the top of the TLG template are correct.
17+
- [ ] Add a screenshot of your TLG named `result.png` to the `quarto/catalog/[TLG-ID]` folder.
18+
- [ ] Branch has all updates from the `main` branch.
19+
- [ ] Request a reviewer.
20+
21+
## Reviewer To-Dos
22+
<!--- Steps to complete as a reviewer when reviewing the pull request. -->
23+
- [ ] Confirm that all GitHub CI/CD pipelines pass with a ✅.
24+
- [ ] Confirm that the TLG screenshot above matches the template output screenshot (`result.png`).
25+
- [ ] Confirm that branch has all updates from the `main` branch.
26+
- [ ] Approve PR once all of the above have been confirmed.

.github/workflows/check.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,10 @@ on:
1616
workflow_dispatch:
1717

1818
jobs:
19-
audit:
20-
name: Audit Dependencies 🕵️‍♂️
21-
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main
22-
r-cmd:
23-
name: R CMD Check 🧬
24-
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
25-
secrets:
26-
REPO_GITHUB_TOKEN: ${{ secrets.PHARMAVERSE_BOT }}
27-
with:
28-
additional-r-cmd-check-params: --as-cran
29-
additional-env-vars: |
30-
_R_CHECK_CRAN_INCOMING_REMOTE_=false
31-
coverage:
32-
name: Coverage 📔
33-
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
34-
secrets:
35-
REPO_GITHUB_TOKEN: ${{ secrets.PHARMAVERSE_BOT }}
3619
linter:
3720
if: github.event_name == 'pull_request'
3821
name: SuperLinter 🦸‍♀️
3922
uses: insightsengineering/r.pkg.template/.github/workflows/linter.yaml@main
40-
roxygen:
41-
name: Roxygen 🅾
42-
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main
43-
secrets:
44-
REPO_GITHUB_TOKEN: ${{ secrets.PHARMAVERSE_BOT }}
45-
with:
46-
auto-update: true
4723
gitleaks:
4824
name: gitleaks 💧
4925
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main

.github/workflows/release.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

DESCRIPTION

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,21 @@ License: Apache License (>= 2)
1111
URL: https://github.com/pharmaverse/cardinal/
1212
BugReports: https://github.com/pharmaverse/cardinal/issues
1313
Depends:
14-
R (>= 4.1)
14+
R (>= 4.2)
1515
Imports:
16-
admiraldev (>= 1.3.1),
17-
cards (>= 0.6.1),
18-
cardx (>= 0.2.5),
19-
checkmate (>= 2.1.0),
16+
cards (>= 0.7.0),
17+
cardx (>= 0.3.0),
18+
crane (>= 0.1.0),
2019
cowplot (>= 1.0.0),
2120
dplyr (>= 1.0.0),
22-
formatters (>= 0.5.8),
2321
ggplot2 (>= 3.5.0),
2422
ggsurvfit (>= 1.1.0),
2523
gt (>= 1.0.0),
26-
gtsummary (>= 2.3.0),
24+
gtsummary (>= 2.4.0),
2725
lubridate (>= 1.7.10),
28-
magrittr (>= 1.5),
2926
purrr (>= 1.0.1),
3027
rlang (>= 0.4.11),
31-
rlistings (>= 0.2.9),
32-
rtables (>= 0.6.9),
33-
tern (>= 0.9.5),
34-
tfrmt (>= 0.1.1),
35-
tidyr (>= 0.8.3),
36-
Tplyr (>= 1.2.1)
28+
tidyr (>= 0.8.3)
3729
Suggests:
3830
knitr (>= 1.42),
3931
pharmaverseadam (>= 1.1.0),

NAMESPACE

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
export(alt_counts_df_preproc)
4-
export(basic_table_annot)
5-
export(make_fig_01)
6-
export(make_fig_02)
7-
export(make_fig_03)
8-
export(make_fig_14)
9-
export(make_table_22)
10-
export(split_cols_by_arm)
11-
import(Tplyr)
12-
import(cards)
13-
import(cardx)
14-
import(checkmate)
15-
import(dplyr)
16-
import(ggplot2)
17-
import(gt)
18-
import(gtsummary)
19-
import(rtables)
20-
import(tern)
21-
import(tfrmt)
22-
importFrom(admiraldev,assert_filter_cond)
23-
importFrom(cowplot,get_legend)
24-
importFrom(cowplot,plot_grid)
25-
importFrom(formatters,var_labels)
26-
importFrom(formatters,var_relabel)
27-
importFrom(formatters,with_label)
28-
importFrom(magrittr,"%>%")
29-
importFrom(purrr,walk)
30-
importFrom(rlang,":=")
31-
importFrom(rlang,.data)
32-
importFrom(rlistings,as_listing)
33-
importFrom(stats,median)
34-
importFrom(stats,prop.test)
35-
importFrom(stats,qt)
36-
importFrom(stats,quantile)
37-
importFrom(stats,sd)
38-
importFrom(stats,setNames)
39-
importFrom(tidyr,pivot_longer)
40-
importFrom(tidyr,pivot_wider)
41-
importFrom(tidyr,separate_rows)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)