Skip to content

Commit

Permalink
fix warning + simplify stack example
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed May 31, 2024
1 parent 3fd3086 commit 56e4757
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ generate_server.data_block <- function(x, id, ...) {
}

#' @param in_dat Reactive input data
#' @param is_prev_valid Useful to validate the current block
#' @rdname generate_server
#' @export
generate_server.transform_block <- function(x, in_dat, id, is_prev_valid, ...) {
Expand Down
13 changes: 1 addition & 12 deletions inst/examples/stack/app.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
library(blockr)

stack <- new_stack()
id <- "mystack"

shiny::shinyApp(
ui = bslib::page_fluid(
generate_ui(stack, id)
),
server = function(input, output, session) {
stack <- generate_server(stack, id)
}
)
serve_stack(new_stack())
2 changes: 2 additions & 0 deletions man/generate_server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56e4757

Please sign in to comment.