Skip to content

Commit

Permalink
adapting the example for the runr functionality to reflect the new lo…
Browse files Browse the repository at this point in the history
…cation in the inst folder
  • Loading branch information
federicomarini committed Oct 1, 2024
1 parent 9739daa commit 0944a11
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
17 changes: 13 additions & 4 deletions R/iSEEindex.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,29 +164,38 @@ iSEEindex <- function(bfc, FUN.datasets, FUN.initial = NULL, default.add = TRUE,
#' ##
#'
#' dataset_fun <- function() {
#' x <- yaml::read_yaml("tonsil_package.yml")
#' x <- yaml::read_yaml(
#' system.file("tonsils_example", "tonsil_package.yml", package = "iSEEindex")
#' )
#' x$datasets
#' }
#'
#' initial_fun <- function() {
#' x <- yaml::read_yaml("tonsil_package.yml")
#' x <- yaml::read_yaml(
#' system.file("tonsils_example", "tonsil_package.yml", package = "iSEEindex")
#' )
#' x$initial
#' }
#'
#' library("shiny")
#' header_tonsils <- fluidRow(
#' shinydashboard::box(
#' width = 12,
#' collapsible = TRUE,
#' collapsed = TRUE,
#' title = "How to explore the Tonsil Atlas datasets",
#' includeMarkdown("header_tonsils.md")
#' includeMarkdown(
#' system.file("tonsils_example", "header_tonsils.md", package = "iSEEindex")
#' )
#' )
#' )
#'
#' footer_tonsils <- fluidRow(
#' shinydashboard::box(
#' width = 12,
#' includeMarkdown("footer_tonsils.md")
#' includeMarkdown(
#' system.file("tonsils_example", "footer_tonsils.md", package = "iSEEindex")
#' )
#' )
#' )
#'
Expand Down
5 changes: 4 additions & 1 deletion inst/tonsils_example/hca_tonsil_epithelial_v2.R
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ initial[["ComplexHeatmapPlot4"]] <- new("ComplexHeatmapPlot", Assay = "logcounts

## Adding a tour to tell things to people - they like to hear or read about the data!

tour <- read.delim("tour_tda_epithelial.txt", sep = ";", header = TRUE)
tour <- read.delim(
system.file("tonsils_example/tour_tda_epithelial.txt", package = "iSEEindex"),
sep = ";", header = TRUE
)



Expand Down
3 changes: 2 additions & 1 deletion inst/tonsils_example/tonsil_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ initial:
datasets:
- Tonsil_epithelial
title: Tonsil_epithelial configuration 1 (R call)
uri: localhost:///Users/fede/Development/iSEEindex/hca_tonsil_epithelial_v2.R
uri: rcall://system.file(package='iSEEindex','tonsils_example/hca_tonsil_epithelial_v2.R')
# uri: localhost:///Users/fede/Development/iSEEindex/hca_tonsil_epithelial_v2.R
# uri: rcall://system.file(package='iSEEindex','ReprocessedAllenData_config_01.R')
description: |
touring around, first go

0 comments on commit 0944a11

Please sign in to comment.