I have a shiny application that uses shiny modules.
Each module lives in its own file in modules/ and is sourced in global.R.
I also have a DESCRIPTION file which puts the shiny app into the showcase mode when deployed.
The problem is, that only code for global.R, server.R, and ui.R is displayed, which is helpful but does not show the full picture (eg showing that mymodule_server("myid") is run in server.R is helpful but I want to have the reactive elements of the function shown and highlighted as its usual in the showcase mode).
Is this possible without dumping all modules in global.R?
Note that this is related to https://github.com/rstudio/shiny/issues/3453
Related
Cannot use the fonts with golem nor the FEATURE unit with the choice of libraries and their description
I want to reproduce the app in the link bellow, but only with golem.
I have tried to change:
some paths - I have deleted fonts folder the original repo https://github.com/nz-stefan/cran-explorer. As you can see app/www has fonts
see the change my repository where I have instead of fonts folder I have added the needed fonts in inst/app/www as golem framework is applied
https://github.com/gabrielburcea/cran_explorer_golem/tree/crngolem/crngolem
look in both bootstrap.min.css and themify.icons.css files - in the original repo posted above has src = "../fonts/etc"
4.I have tried in src = "../inst/app/www/etc" YET IT DOES NOT WORK
I am trying to reproduce this app:
https://gallery.shinyapps.io/cran-explorer/?_ga=2.33355193.643983280.1673875561-1724596956.1673624821
But cannot get the expected output as above with the nice blue fonts and the patterns. This is how I want it:
This is what I get instead:
I want to connect external css file for R shiny dashboard. I am using R 3.5.1. I have downloaded cerulean theme as bootstrap.css in www directory. Using the code below
dashboardBody(
tags$head(
tags$link( rel="stylesheet",
type='text/css',
href = 'bootstrap.css'))
But cerulean theme is not appearing in shiny app.
Also I want to change the search input box displaying in 3D to 2D. Please have a look below:
New search input box should appear like below
I have no idea why the following works, but from experience: just renaming the .css file in your www folder and, ofcourse, in the .R file gets it working.
Your code seems fine.
Alternatively you may try includeCSS(). For this you should put your CSS in your app directory.
shinyUI(fluidPage(
includeCSS("styles.css"),
...
My shiny app was working well with icpns eg calendar icon displaying till I decided to update the font-awesome folder.I read online that you can download and replace rhe folder to get the latest fonts.I did this and now no icon is working or showing after including them in my dashboard code.How can I get them to work again?
Thanks Mark.
Actually I had overwritten the original fontt-awesome folder.But I got a work around.I searched for a font-awesome folder in the HTML directory of Rstudio and copy pasted this into the www folder of the shiny directory.My icons now work.
I'm writing some input bindings in Shiny, and want to build my functions into a package. The problem now is input bindings requires javascript code which is usually located in the www directory in the application directory, so the user need to copy the javascript file into his/her www every application he/she requires the package and use the input bindings.
And I want when the user of this package require()ed this package, the corresponding input binding jQuery definitions are automatically loaded with the app just as the native binding definitions are. Or does anyone knows other solutions for this situation.
You can place the javascript code in the inst folder in your package and declare that folder as a dependency. There are probably other ways, perhaps even better ways, but you can see as an example how I did this in my package. I created a colourInput widget that needed two javascript files: one for the input bindings, and one for the actual javascript library for the button.
Here is the folder where my javascript and css is kept (notice how it's under inst/www/shared/colourpicker), and here is the code I use to declare the javascript/css files as dependencies, and at the last line I attach the javascript/css dependencies to the button HTML.
It took me a while to understand how to implement this, but this is a working example, so you can look at this real code and follow a similar approach.
Is it possible to apply customize css file to change appearance of dataTable in R Shiny? I tried applying
shinyUI(fluidPage(theme = "bootstrap.css",
at the beginning but it does not effect the row colour of the table.
You need to first create a 'www' directory inside your app directory. Download "bootstrap.css" and put it in there.
Compile and run!
It must work.