Skip to content

Commit d622a76

Browse files
committed
merge main
Merge branch 'main' into 218_table2_ard@main # Conflicts: # DESCRIPTION
2 parents 51a9608 + 1c5a763 commit d622a76

File tree

90 files changed

+2398
-1188
lines changed

Some content is hidden

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

90 files changed

+2398
-1188
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 🐞 Bug Report
33
description: File a bug report
44
title: "[Bug]: <title>"
55
labels: ["bug"]
6-
projects: ["falcon"]
6+
projects: ["cardinal"]
77
body:
88
- type: markdown
99
attributes:

.github/ISSUE_TEMPLATE/feature.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ✨ Feature Request
33
description: Request or propose a new feature
44
title: "[Feature Request]: <title>"
55
labels: ["enhancement"]
6-
projects: ["falcon"]
6+
projects: ["cardinal"]
77
body:
88
- type: textarea
99
attributes:

.github/ISSUE_TEMPLATE/new_template.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 🔨 New Table Template
33
description: Add a new table template
44
title: "[New Table]: Table XX"
55
labels: ["new template"]
6-
projects: ["falcon"]
6+
projects: ["cardinal"]
77
body:
88
- type: textarea
99
id: table-layout
@@ -13,7 +13,7 @@ body:
1313
value: |
1414
[Replace this line with your table screenshot by dragging the file here.]
1515
16-
Please refer to page XX of the [FDA guideline document](https://github.com/pharmaverse/falcon/files/10744259/FDA-2022-N-1961-0002_attachment_1.pdf) for more details.
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.
1717
- type: textarea
1818
id: table-description
1919
attributes:

.github/ISSUE_TEMPLATE/question.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ❓ Question
33
description: Question about usage or documentation
44
title: "[Question]: <title>"
55
labels: ["question"]
6-
projects: ["falcon"]
6+
projects: ["cardinal"]
77
body:
88
- type: textarea
99
attributes:

.github/workflows/docs.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,19 @@ jobs:
4444
name: Quarto Docs 📕
4545
runs-on: ubuntu-latest
4646
container:
47-
image: rocker/verse:4.3.0
47+
image: rocker/verse:4.4.0
4848
permissions:
4949
contents: write
5050
steps:
5151
- name: Check out repository 🛎️
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4.1.1
5353

5454
- name: Run Staged dependencies 🎦
55-
uses: insightsengineering/staged-dependencies-action@fix-remotes-self-install
55+
uses: insightsengineering/staged-dependencies-action@v1
5656
env:
5757
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5858
with:
5959
enable-check: false
60-
run-system-dependencies: true
6160
direction: upstream
6261

6362
- name: Install package 📦

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ package.json
3535
quarto/.quarto/
3636
quarto/site_libs/
3737
/.quarto/
38+
site_libs
3839
_site
3940
_freeze
4041
_cache

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# R specific hooks: https://github.com/lorenzwalthert/precommit
44
repos:
55
- repo: https://github.com/lorenzwalthert/precommit
6-
rev: v0.4.2
6+
rev: v0.4.3.9001
77
hooks:
88
- id: style-files
99
args: [--style_pkg=styler, --style_fun=tidyverse_style]
@@ -76,6 +76,6 @@ repos:
7676
files: '\.Rhistory|\.RData|\.Rds|\.rds$'
7777
# `exclude: <regex>` to allow committing specific files.
7878
- repo: https://github.com/igorshubovych/markdownlint-cli
79-
rev: v0.39.0
79+
rev: v0.41.0
8080
hooks:
8181
- id: markdownlint

DESCRIPTION

+27-28
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,48 @@
11
Type: Package
2-
Package: falcon
2+
Package: cardinal
33
Title: FDA Safety Tables and Figures
4-
Version: 0.1.0.9055
5-
Date: 2024-04-24
4+
Version: 0.1.0.9062
5+
Date: 2024-09-19
66
Authors@R:
77
person("Pawel", "Rucki", , "[email protected]", role = c("aut", "cre"))
88
Description: R package with implementation of Safety Tables and Figures
99
issued by FDA.
1010
License: Apache License (>= 2)
11-
URL: https://github.com/pharmaverse/falcon/
12-
BugReports: https://github.com/pharmaverse/falcon/issues
11+
URL: https://github.com/pharmaverse/cardinal/
12+
BugReports: https://github.com/pharmaverse/cardinal/issues
1313
Depends:
1414
R (>= 3.6),
15-
tern (>= 0.9.4)
15+
tern (>= 0.9.5)
1616
Imports:
17-
cards,
18-
cardx,
19-
checkmate,
20-
cowplot (>= 0.7.0),
21-
dplyr,
22-
formatters (>= 0.5.6),
23-
ggplot2 (>= 3.4.0),
24-
gt,
25-
gtsummary,
26-
lubridate,
27-
magrittr,
17+
cards (>= 0.2.0),
18+
cardx (>= 0.2.0),
19+
checkmate (>= 2.1.0),
20+
cowplot (>= 1.0.0),
21+
dplyr (>= 1.0.0),
22+
formatters (>= 0.5.8),
23+
ggplot2 (>= 3.5.0),
24+
ggsurvfit (>= 1.1.0),
25+
gt (>= 0.10.1),
26+
gtsummary (>= 2.0.0),
27+
lubridate (>= 1.7.10),
28+
magrittr (>= 1.5),
2829
purrr (>= 1.0.1),
2930
rlang (>= 0.4.11),
30-
rlistings (>= 0.2.8),
31-
rtables (>= 0.6.7),
32-
tfrmt,
33-
tidyr,
34-
Tplyr
31+
rlistings (>= 0.2.9),
32+
rtables (>= 0.6.9),
33+
tfrmt (>= 0.1.1),
34+
tidyr (>= 0.8.3),
35+
Tplyr (>= 1.2.1)
3536
Suggests:
36-
knitr,
37-
random.cdisc.data (>= 0.3.14),
37+
knitr (>= 1.42),
38+
random.cdisc.data (>= 0.3.15),
3839
svglite (>= 2.1.2),
39-
testthat (>= 3.0.0),
40+
testthat (>= 3.1.9),
4041
withr (>= 2.0.0)
41-
Remotes:
42-
insightsengineering/random.cdisc.data@*release
4342
biocViews:
4443
Config/testthat/edition: 3
4544
Encoding: UTF-8
4645
Language: en-US
4746
LazyData: true
4847
Roxygen: list(markdown = TRUE)
49-
RoxygenNote: 7.3.1
48+
RoxygenNote: 7.3.2

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export(alt_counts_df_preproc)
44
export(basic_table_annot)
55
export(make_fig_01)
66
export(make_fig_02)
7+
export(make_fig_03)
78
export(make_fig_14)
89
export(make_table_02)
910
export(make_table_03)

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# falcon 0.1.0.9055
1+
# cardinal 0.1.0.9062
22

33
* Initial release.

R/argument_convention.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Standard Arguments
22
#'
3-
#' This documentation lists all the arguments in `falcon` that are used repeatedly by functions to output tables.
3+
#' This documentation lists all the arguments in `cardinal` that are used repeatedly by functions to output tables.
44
#'
55
#' @param show_colcounts (`flag`)\cr Whether column counts should be printed. Boolean.
66
#' @param arm_var (`character`)\cr Name of the treatment arm variable used to split table into columns.

R/falcon.R R/cardinal.R

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' falcon Package
1+
#' cardinal Package
22
#'
33
#' Implementation of FDA Safety Tables and Figures
44
#'
@@ -20,9 +20,9 @@ NULL
2020
utils::globalVariables(c(
2121
".", "AEACN", "AESCONG", "AESDISAB", "AESDTH", "AESER", "AESHOSP", "AESIFL", "AESLIFE", "AESMIE", "AGE",
2222
"AGESEX", "AVAL", "AVALU", "AVISITN", "DOSAGE", "DOSDUR", "DTHADY", "DTHCAT", "DTHCAUS", "DTHFL", "DCSREAS",
23-
"MAX_DIABP", "MAX_SYSBP", "PARAMCD", "SEX", "TRTDUR", "TRTDUR_MONTHS", "TRTEDT", "ASER", "DCTREAS",
24-
"EOSSTT", "EOTSTT", "ITTFL", "PPROTFL", "RANDFL", "TRTEMFL", "TRTSDT", "USUBJID", "column", "median", "ord_layer_1",
25-
"ord_layer_2", "ord_layer_index", "param", "pct", "row_label1", "row_label2", "sd", "tbl_lbl", "value",
26-
"ENRLDT", "RANDDT", "G110", "G60", "G90", "GE120", "L60", "N", "val", "id_var", "PT_PCT", "arm", "x", "TLSTFU",
27-
"se", "lower_ci", "upper_ci", "SBP90", "DBP60"
23+
"MAX_DIABP", "MAX_SYSBP", "PARAMCD", "SEX", "TRTDUR", "TRTDUR_MONTHS", "TRTEDT", "ASER", "EOSSTT", "EOTSTT",
24+
"ITTFL", "PPROTFL", "RANDFL", "TRTEMFL", "TRTSDT", "USUBJID", "column", "median", "ord_layer_1", "ord_layer_2",
25+
"ord_layer_index", "param", "pct", "row_label1", "row_label2", "sd", "tbl_lbl", "value", "ENRLDT", "RANDDT",
26+
"G110", "G60", "G90", "GE120", "L60", "N", "val", "id_var", "PT_PCT", "arm", "x", "TLSTFU", "se", "lower_ci",
27+
"upper_ci", "SBP90", "DBP60", "STATUS"
2828
))

R/fda-fig_01.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ make_fig_01 <- function(df,
6363
geom_line() +
6464
labs(
6565
title = annotations[["title"]],
66-
subtitle = annotations[["subtitle"]],
66+
subtitle = annotations[["subtitles"]],
6767
caption = annotations[["caption"]],
6868
x = x_lab,
6969
y = y_lab

R/fda-fig_02.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ make_fig_02 <- function(df,
6161
geom_line() +
6262
labs(
6363
title = annotations[["title"]],
64-
subtitle = annotations[["subtitle"]],
64+
subtitle = annotations[["subtitles"]],
6565
caption = annotations[["caption"]],
6666
x = x_lab,
6767
y = y_lab

0 commit comments

Comments
 (0)