dashboardthemes | custom theme support for R Shinydashboard applications | Theme library
kandi X-RAY | dashboardthemes Summary
kandi X-RAY | dashboardthemes Summary
An R package to provide custom theme options for Shinydashboard applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dashboardthemes
dashboardthemes Key Features
dashboardthemes Examples and Code Snippets
Community Discussions
Trending Discussions on dashboardthemes
QUESTION
I'm putting together a shiny app to play around with some athlete GPS data. Essentially, I'm looking to structure my script so that each time the user selects an area of interest on the plotly plot and the "Add" actionButton
is clicked, the table below will add the calculated Start_time
, Time_at_peak
, Max_velocity
, Time_to_peak
, and Distance_to_peak
values.
The issue can be seen in the GIF below: - Once the area of interest is selected and the "Add" button clicked, the first values seem correct. However, when the user selects a second area of interest to add to the table, it overwrites the initial entry and will keep overwriting each time a new selection is made. This is seemingly because because the code is inside the observeEvent(event_data("plotly_selected")
, which, confusingly, it needs to be in order to calculate the variables of interest.
I'm currently a little stumped and can't seem to find any relevant information. As such, any guidance would be greatly appreciated!
Here is a we transfer link to some test data that can be uploaded to the app: https://wetransfer.com/downloads/5a7c5da5a7647bdbe133eb3fdac79c6b20211119052848/afe3e5
...ANSWER
Answered 2021-Nov-23 at 05:02I've managed to figure it out and thought I'd post an answer rather than delete the question - just in case someone out there is looking to do a similar thing and they are unsure how to do it.
Firstly, I removed the pre-populated table x_df
from the beginning - it was no longer required.
Although I thought the code needed to sit inside the observeEvent(event_data("plotly_selected")
to function correctly, it did not - thankfully, because that was at the root of the issue. Instead, I used observeEvent(input$Add, {
(which is the correct code to use as opposed to if(input$Add > 0)
) to anchor the event to the click of the Add button.
The values <- reactiveValues()
was placed outside the observeEvent()
and an IF statement was used to either add the data to the values$df
data frame on it's own if it was the first selection, or bind it to the existing saved data.
Here's the new code and a GIF demonstrating.
QUESTION
I'm having issues with a filter option in my R shinydashboard app. I'm able to filter a dataframe column (padj < 1) but when I incorporate this same filter into the app the data is missing padj rows that are very tiny like 1.41103072458963E-14. I get all rows up to 4 decimal places (0.00011014) but not rows with padj smaller than that. This cuts off dozens of wanted rows.
I may be coding something wrong and have tried searching for similar issues but haven't found any. The select input I chose is:
...ANSWER
Answered 2021-Nov-06 at 12:41Try as.numeric(input$FDR)
in your filter as shown below.
QUESTION
I'm creating a table that has 88 columns, so naturally I'd require a scrollbar, I'd also like to highlight some column variables depending on their values, however my issue is that no horizontal scrollbar appears. This is the code:
...ANSWER
Answered 2021-Jul-20 at 05:20Using mtcars
as example this works for me to get a horizontal scroll bar.
QUESTION
I have the following dockfile
...ANSWER
Answered 2021-Jan-20 at 17:17Check out the docs on multistage builds
You have a COPY statement, and right after that a FROM statement. After that last statement you no longer have access to whatever was in there in previous stage. You can copy files from one stage to the next if needed with --from=stagename
where you named the stage with FROM somerepo/someimage as stagename
.
In this case it means that everything you do in the first stage is never used or available again.
Normally this is used something like
QUESTION
I have the code below and it allows a user to upload an excel, rename the columns, and then do some quick analysis around top terms, etc (the first column MUST be named 'Comments').
What is happening is that when I upload my file > rename my first column > then click on the quick analysis, it runs the code 4 times so it's constantly refreshing. I removed the other 3 tables I have in there to make it easier. I'm thinking I need to isolate()
function somewhere, but I'm not sure.
ANSWER
Answered 2020-Dec-18 at 15:31Your reactivity graph has too many edges, among other things.
(Symbols borrowed from https://shiny.rstudio.com/articles/reactivity-overview.html)
For starters, DataRename
depends on dataa()
and input$file
, but dataa
already depends on input$file
. So whenever input$file
changes, both dataa
and DataRename
fire. Once dataa
fires, then it triggers DataRename
again. If you must have input$file
in DataRename
, then use isolate(input$file)
there.
Further, DataRename
looks at everything within input$
, so ... whenever anything is updated in any input anywhere, DataRename
is triggered. Therefore, everything downstream of DataRename
is also triggered, even if unnecessarily.
dm
also has a redundant dependency with corp
and DataRename
, where corp
already depends on DataRename
.
Another minor concern is that numComments
references df
, but I cannot find where it is defined in its view. Check to make sure you are not reaching out to the calling environment and finding a df
hanging around. (If so, then this app may work locally but will fail when deployed.)
Possible fixes, untested:
QUESTION
Once dashboardthemes
is loaded it seems that bootstrap notification style no longer works (they are all displayed as gray i.e. default one).
Below 2 Shiny application, the first which appears to work fine, the second which shows the problem.
Does someone knows how to manage/fix this?
Note: dashboardthemes
seems to have the same impact regarding buttons, see this SO post
ANSWER
Answered 2020-Aug-22 at 18:34The problem was the dashboardthemes package set a single background colour for all notifications even if they had a different status. I've fixed this in the latest v1.1.2 release of the package which is now available on GitHub. It will take several days to release on CRAN.
QUESTION
With shinyBS::bsButton()
it is possible to have a style = "default"
button and a custom size e.g. :
ANSWER
Answered 2020-Aug-11 at 14:40Found it! It was due to the following code:
QUESTION
I'm trying to build docker image for my R shiny app. Below is theDockerfile
.
ANSWER
Answered 2020-May-18 at 08:14The error message you are receiving is not Docker specific, but rather concerns your package manager apt
.
Although you are updating the package list using apt-get update
, you do not install newer versions of packages. What happens now is that you are trying to install a newer version of an already installed package which leads to the error message.
If you use apt-get upgrade
, apt
will install the newer versions of your installed packages.
Changing the 5th line as shown below will fix that issue:
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
QUESTION
I'm trying to build a docker image for my shiny app. Below is my dockerfile
. When I build my images, everything else seems fine, except I got error message Error in library(devtools) : there is no package called ‘devtools’ Execution halted
. I also tried devtools::install_github('nik01010/dashboardthemes')
with no success. I have non clue why? What could go wrong? Do anyone know what is wrong with my dockerfile? Thanks a lot.
ANSWER
Answered 2020-May-13 at 05:11There are a few approaches you might try.
Easiest:
Use remotes::install_github
instead of devtools
. remotes
has many fewer dependencies if you don't need the other functionality.
Second Easiest:
Use rocker/tidyverse image from Docker Hub instead of baseR image.
QUESTION
I want to put a dropdown menu on shinydashboard header for dashboard theme change. My shiny app is like below. I could not make the app work. What I got is error message;
...ANSWER
Answered 2020-May-06 at 21:51You can not put the dropdownButton
in the dashboardHeader
.
Instead you can put it in the dashboardBody
or dashboardSidebar
and have it updated like this :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dashboardthemes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page