Skip to content

Commit

Permalink
Fixes missing imports (#784)
Browse files Browse the repository at this point in the history
# Pull Request

Fixes #783 

There were a few missing imports that made the package unusable if we
want to load functions with `box`.
  • Loading branch information
svalvaro authored Sep 17, 2024
1 parent 2d73acd commit b61d944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,9 @@ render_tab_header <- function(dataset_name, output, data) {
dataset_ui_id <- paste0("dataset_summary_", dataset_name)
output[[dataset_ui_id]] <- renderText({
df <- data()[[dataset_name]]
join_keys <- join_keys(data())
join_keys <- teal.data::join_keys(data())
if (!is.null(join_keys)) {
key <- join_keys(data())[dataset_name, dataset_name]
key <- teal.data::join_keys(data())[dataset_name, dataset_name]
} else {
key <- NULL
}
Expand Down Expand Up @@ -979,7 +979,7 @@ render_tab_table <- function(dataset_name, parent_dataname, output, data, input,
# get icons proper for the data types
icons <- vapply(df, function(x) class(x)[1L], character(1L))

join_keys <- join_keys(data())
join_keys <- teal.data::join_keys(data())
if (!is.null(join_keys)) {
icons[intersect(join_keys[dataset_name, dataset_name], colnames(df))] <- "primary_key"
}
Expand Down

0 comments on commit b61d944

Please sign in to comment.