This library aims to provide R shiny apps developers of the Institut Curie with different modules witch can be used as bricks to build bigger shiny apps.
renv::init("path_to_your_app_folder/").
This should install the library dependancies.
install.packages("path_to_bioshiny_module_library_folder/", type = "source", repos = NULL)
To do so you have to call two functions, one in the server and the second in the UI part.
In the CallModule function you stipulate the library module that you want to call (typically called ModuleNameServer), and an id for this specific call.
server <- function(input, output, session) { observe({ PCA <- callModule(module = DrawPCAServer2,id = "PCA1", matrix = counts , metadata = metadata) }) }
NB : Some of the modules accept arguments of type reactiveValues. Description of the arguments are provided in the ModuleNameServer functions' help sections. This wad different modules can communicates and share data objects.
In the UI call the corresponding ModuleName UI function, with the matching id.
ui <- dashboardPage( dashboardHeader(title = "PCA Module Test"), dashboardSidebar(), dashboardBody( fluidPage( fluidRow( DrawPCAUI2("PCA1") )) ) )
The current available modules can be test executing the whole code in the corresponding inst/Tests/run_dev_ModuleNameModule.R file.
If you have any question, suggestions or bug reports please contact pierre.gestraud@curie.fr and clement.benoit@curie.fr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.