Skip to content

Commit

Permalink
210 substitute teal.data::get_code with teal.code::get_code (#1388)
Browse files Browse the repository at this point in the history
Partner to 
- insightsengineering/teal.data#343 
- insightsengineering/teal.code#214

Replace `teal.data::get_code()` (that worked on `teal_data()`) with
`teal.code::get_code()` (that works on `qenv`).
  • Loading branch information
m7pr authored Oct 23, 2024
1 parent 2aba724 commit 6895e1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BugReports: https://github.com/insightsengineering/teal/issues
Depends:
R (>= 4.0),
shiny (>= 1.8.1),
teal.data (> 0.6.0.9007),
teal.data (>= 0.6.0.9014),
teal.slice (>= 0.5.1.9009)
Imports:
checkmate (>= 2.1.0),
Expand All @@ -48,7 +48,7 @@ Imports:
rlang (>= 1.0.0),
shinyjs,
stats,
teal.code (>= 0.5.0),
teal.code (>= 0.5.0.9011),
teal.logger (>= 0.2.0),
teal.reporter (>= 0.3.1.9004),
teal.widgets (>= 0.4.0),
Expand Down
2 changes: 1 addition & 1 deletion R/module_filter_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ srv_filter_data <- function(id, datasets, active_datanames, data_rv, is_active)
filter_changed <- reactive({
req(inherits(datasets(), "FilteredData"))
new_signature <- c(
teal.data::get_code(data_rv()),
teal.code::get_code(data_rv()),
.get_filter_expr(datasets = datasets(), datanames = active_datanames())
)
if (!identical(previous_signature(), new_signature)) {
Expand Down
2 changes: 1 addition & 1 deletion R/teal_data_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ NULL
args = c(
mget(x = datanames_corrected_with_raw, envir = teal.code::get_env(data)),
list(
code = teal.data::get_code(data, datanames = datanames_corrected_with_raw),
code = teal.code::get_code(data, names = datanames_corrected_with_raw),
join_keys = teal.data::join_keys(data)[datanames_corrected]
)
)
Expand Down

0 comments on commit 6895e1d

Please sign in to comment.