Commit 32f5248
authored
# Pull Request
<!--- Replace `#nnn` with your issue link for reference. -->
Fixes warning popping up on modules using `c.teal_card` indirectly
```r
pkgload::load_all("/home/averissimo/work/roche🟦/packages📦/teal.reporter")
q1 <- teal.reporter::teal_report() |> within(1+1)
q2 <- within(q1, 2+2)
q3 <- within(q1, 3+3)
c(q2, q3)
#> Warning message:
#> Appended `teal_card` doesn't remove some of the elements from previous `teal_card`.
#>
#> ✅︎ code verified
#> <environment: 0x5b5d075c6b10> 🔒
#> Parent: <environment: package:teal.reporter>
```
### Changes Description
- Adds class to warning condition
- Allows developers to suppress it explicitly, without hiding other
warnings
- Warning should not be presented when merging `teal_report` objects
- Makes it look as there is something wrong with the operation and on
teal apps (such as `tm_g_distribution`)
1 parent a24ce75 commit 32f5248
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
0 commit comments