Skip to content

Commit a65be1f

Browse files
committed
fix tests
1 parent 583fd42 commit a65be1f

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

R/generics.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ summary.TE_data_prep_sep <- function(object, ...) {
4747

4848
n_files <- length(object$data)
4949
cat("Expanded data saved in ", n_files, " csv file", if (n_files > 1) "s" else "", ":\n", sep = "")
50-
print(data.table(data = object$data), topn = 3, nrows = 5, col.names = "none", ...)
50+
print(data.table(data = object$data), topn = 3, nrows = 5, col.names = "none", class = FALSE, ...)
5151
cat("\n\n")
5252
NextMethod()
5353
}

tests/testthat/_snaps/generics.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,24 @@
123123
Output
124124
Expanded Trial Emulation data
125125
126-
id trial_period followup_time outcome weight treatment X1
127-
1: 1 0 0 0 1.000 1 1
128-
2: 1 0 1 0 1.011 1 1
129-
3: 1 0 2 0 0.994 1 1
130-
---
131-
9474: 1000 0 7 0 0.821 1 0
132-
9475: 1000 0 8 0 0.761 1 0
133-
9476: 1000 0 9 1 0.698 1 0
134-
assigned_treatment dose
135-
1: 1 1
136-
2: 1 2
137-
3: 1 3
138-
---
139-
9474: 1 8
140-
9475: 1 9
141-
9476: 1 10
126+
id trial_period followup_time outcome weight treatment X1
127+
<int> <int> <int> <num> <num> <num> <num>
128+
1: 1 0 0 0 1.000 1 1
129+
2: 1 0 1 0 1.011 1 1
130+
3: 1 0 2 0 0.994 1 1
131+
---
132+
9474: 1000 0 7 0 0.821 1 0
133+
9475: 1000 0 8 0 0.761 1 0
134+
9476: 1000 0 9 1 0.698 1 0
135+
assigned_treatment dose
136+
<num> <num>
137+
1: 1 1
138+
2: 1 2
139+
3: 1 3
140+
---
141+
9474: 1 8
142+
9475: 1 9
143+
9476: 1 10
142144
143145
Number of observations in expanded data: 9476
144146
First trial period: 0

0 commit comments

Comments
 (0)