Skip to content

Commit

Permalink
feat: use c() instead of teal.code::join()
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Nov 4, 2024
1 parent 7805a1b commit 0989ac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -1214,15 +1214,15 @@ srv_distribution <- function(id,
# wrapped in if since could lead into validate error - we do want to continue
test_r_qenv_out <- try(test_q(), silent = TRUE)
if (!inherits(test_r_qenv_out, c("try-error", "error"))) {
qenv_final <- teal.code::join(qenv_final, test_q())
qenv_final <- c(qenv_final, test_q())
}

qenv_final <- if (tab == "Histogram") {
req(dist_q())
teal.code::join(qenv_final, dist_q())
c(qenv_final, dist_q())
} else if (tab == "QQplot") {
req(qq_q())
teal.code::join(qenv_final, qq_q())
c(qenv_final, qq_q())
}
qenv_final
})
Expand Down

0 comments on commit 0989ac2

Please sign in to comment.