Skip to content

Commit

Permalink
expanding a bit on the main example
Browse files Browse the repository at this point in the history
  • Loading branch information
federicomarini committed Oct 4, 2024
1 parent 2e73404 commit 4a86bd6
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions R/iSEEindex.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,35 @@
#' if (interactive()) {
#' shiny::runApp(app_tonsils, port = 5678)
#' }
#'
#'
#' ## This example shows that it is possible to mix different types of resources
#' ## Some provide the path, some directly the object
#'
#' dataset_fun_mix <- function() {
#' x <- yaml::read_yaml(
#' system.file("mixed_resources.yml", package = "iSEEindex")
#' )
#' x$datasets
#' }
#' initial_fun_mix <- function() {
#' x <- yaml::read_yaml(
#' system.file("mixed_resources.yml", package = "iSEEindex")
#' )
#' x$initial
#' }
#'
#' app_mixed <- iSEEindex(bfc,
#' dataset_fun_mix,
#' initial_fun_mix,
#' default.add = TRUE,
#' default.position = "last",
#' app.title = "iSEE ❤ multiple resource types")
#'
#' if (interactive()) {
#' shiny::runApp(app_mixed, port = 4242)
#' }
#'
iSEEindex <- function(bfc,
FUN.datasets,
FUN.initial = NULL,
Expand Down
29 changes: 29 additions & 0 deletions man/iSEEindex.Rd

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

0 comments on commit 4a86bd6

Please sign in to comment.