This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box::use( | |
shiny[div, moduleServer, NS, observeEvent], | |
shiny.fluent[JS, fluentPage, Dropdown.shinyInput], | |
) | |
DropdownMenuItemType <- function(type) { # nolint | |
JS(paste0("jsmodule['@fluentui/react'].DropdownMenuItemType."), type) | |
} | |
render_search_box <- JS(paste("(option) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create test data | |
lapply(1:9, function(x) { | |
write.csv( | |
nycflights13::flights, | |
paste0("data", x, ".csv") | |
) | |
}) | |
# List all files to iterate through |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app prototype ----------------------------------------------------------- | |
library(shiny) | |
# define select chioces | |
input_choices <- data.frame( | |
x = c(1, 1, 2, 2, 3, 3), | |
y = c(11, 12, 21, 22, 31, 32) | |
) | |
# choices for x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create two simple dt with same order | |
dt1 = data.table(k = c(1:10), | |
v1 = rnorm(10), | |
key = "k") | |
dt2 = data.table(k = c(1:10), | |
v2 = rnorm(10), | |
key = "k") | |
# change order of dt1 |