From 45831b7ec1dcb944da5fdf29b16f6d9f3d9c0255 Mon Sep 17 00:00:00 2001
From: Alanah Jonas <156101954+alanahjonas95@users.noreply.github.com>
Date: Mon, 13 Jul 2026 12:52:57 +0100
Subject: [PATCH 1/4] create an ard_stack class
---
R/ard_stack.R | 3 +++
tests/testthat/test-ard_stack.R | 10 ++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/R/ard_stack.R b/R/ard_stack.R
index 82fdfcbcf..09ac1c0a0 100644
--- a/R/ard_stack.R
+++ b/R/ard_stack.R
@@ -168,6 +168,9 @@ ard_stack <- function(data,
)
}
+ # assign new class -----------------------------------------------------------
+ class(ard_full) <- c("ard_stack", class(ard_full))
+
# return final ARD -----------------------------------------------------------
ard_full
}
diff --git a/tests/testthat/test-ard_stack.R b/tests/testthat/test-ard_stack.R
index 247381e7b..075d812f0 100644
--- a/tests/testthat/test-ard_stack.R
+++ b/tests/testthat/test-ard_stack.R
@@ -10,6 +10,10 @@ test_that("ard_stack() works", {
NA
)
+ # Verify ard_stack class is assigned and ordered correctly
+ expect_s3_class(ard1, "ard_stack")
+ expect_identical(class(ard1)[1], "ard_stack")
+
expect_equal(
ard1,
bind_ard(
@@ -72,7 +76,8 @@ test_that("ard_stack() works", {
expect_equal(
ard2,
ard_match,
- ignore_function_env = TRUE
+ ignore_function_env = TRUE,
+ ignore_attr = TRUE
)
@@ -112,7 +117,8 @@ test_that("ard_stack() adding overalls", {
)
expect_equal(
ard_test,
- ard_match
+ ard_match,
+ ignore_attr = TRUE
)
})
From 5bb4dd153275170f4234549153e9174ba086bd0c Mon Sep 17 00:00:00 2001
From: Alanah Jonas <156101954+alanahjonas95@users.noreply.github.com>
Date: Mon, 13 Jul 2026 16:04:56 +0100
Subject: [PATCH 2/4] update readme links
---
README.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 9cf53ce6e..fb7de1c55 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,16 @@
-# cards
+# cards
[](https://CRAN.R-project.org/package=cards)
[](https://app.codecov.io/gh/insightsengineering/cards)
+coverage](https://codecov.io/gh/pharmaverse/cards/graph/badge.svg)](https://app.codecov.io/gh/pharmaverse/cards)
[](https://cran.r-project.org/package=cards)
-[](https://github.com/insightsengineering/cards/actions/workflows/R-CMD-check.yaml)
+[](https://github.com/pharmaverse/cards/actions/workflows/R-CMD-check.yaml)
The [CDISC Analysis Results
@@ -44,14 +44,14 @@ You can install the development version of cards from
``` r
# install.packages("devtools")
-devtools::install_github("insightsengineering/cards")
+devtools::install_github("pharmaverse/cards")
```
## Extensions
[
](https://insightsengineering.github.io/cardx/)
+src="https://raw.githubusercontent.com/pharmaverse/cardx/main/man/figures/logo.png"
+style="float: right" width="120" alt="cardx website" />](https://github.com/pharmaverse/cardx)
The {cards} package exports three types of functions:
@@ -61,7 +61,7 @@ The {cards} package exports three types of functions:
3. Functions to work with existing ARD objects.
-The [{cardx}](https://github.com/insightsengineering/cardx/) R package
+The [{cardx}](https://github.com/pharmaverse/cardx) R package
is an extension to {cards} that uses the utilities from {cards} and
exports functions for creating additional ARD objects––including
functions to summarize t-tests, Wilcoxon Rank-Sum tests, regression
@@ -70,7 +70,7 @@ models, and more.
## Getting Started
Review the [Getting
-Started](https://insightsengineering.github.io/cards//main/articles/getting-started.html)
+Started](https://pharmaverse.github.io/cards/latest-tag/articles/getting-started.html)
page for examples using ARDs to calculate statistics to later include in
tables.
From 0b8ee3b88877178410814a17edde8f0506706318 Mon Sep 17 00:00:00 2001
From: Alanah Jonas <156101954+alanahjonas95@users.noreply.github.com>
Date: Mon, 13 Jul 2026 16:07:23 +0100
Subject: [PATCH 3/4] update link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fb7de1c55..c68f5709b 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ devtools::install_github("pharmaverse/cards")
[
](https://github.com/pharmaverse/cardx)
+style="float: right" width="120" alt="cardx website" />](https://pharmaverse.github.io/cardx/)
The {cards} package exports three types of functions:
From 95e9946e0ac8fac3472c83c0b25cb74d65b23b0d Mon Sep 17 00:00:00 2001
From: Alanah Jonas <156101954+alanahjonas95@users.noreply.github.com>
Date: Mon, 13 Jul 2026 16:08:35 +0100
Subject: [PATCH 4/4] small update
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c68f5709b..b3a8b3832 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ The {cards} package exports three types of functions:
3. Functions to work with existing ARD objects.
-The [{cardx}](https://github.com/pharmaverse/cardx) R package
+The [{cardx}](https://github.com/pharmaverse/cardx/) R package
is an extension to {cards} that uses the utilities from {cards} and
exports functions for creating additional ARD objects––including
functions to summarize t-tests, Wilcoxon Rank-Sum tests, regression