shinyapps

“first argument“ error when using shinyapps.io, rodbc to show sql query result in web

纵饮孤独 提交于 2019-12-12 04:26:02
问题 First of all, I need to use R to get SQL query result from HANA database, which I finish by using RODBC in Rstudio. Second of all, I need to share my code with others, which I use shinyapps.io to finish. However, I need to use shinyapps to show my SQL query result on other computers, which I have the following error message: error first argument is not an open rodbc channel I used the answer from R shiny RODBC connection Failing, but it still does not work. Here is my codes for ui.R and sever

Exporting texts and datatable from shiny to pdf

笑着哭i 提交于 2019-12-11 16:59:16
问题 I am trying to write an app for work to allow some simple advice for patients on certain drugs to be presented in a datatable format, with the option to add some additional text. I've looked around to see if there is some way of exporting the the text and datatable to a pdf so that we can print it out but have not been successful so far. This is the code for the app: library(tidyverse) library(shiny) library(shinythemes) library(xtable) insulin <- readRDS("insulin.rda") # User Interface ui <-

Cannot connect to Microsoft Azure from shinyapps.io

て烟熏妆下的殇ゞ 提交于 2019-12-11 06:06:55
问题 I built an Rshiny application that pulls data from Microsoft Azure. My application works locally when I use the 'SQL Server' driver in my connection string, but does not work when I publish the app on shinyapps.io. Based on a suggestion from here, I have been trying to use the 'FreeTDS' driver to connect with Azure when publishing on shinyapps.io but I am not having any luck. Here is my connection string: con <- dbConnect(odbc::odbc(), Driver = "FreeTDS", Server = "servername", Database =

Using custom fonts on shinyapps.io

我的梦境 提交于 2019-12-11 05:55:00
问题 I would like to use a custom font in my shiny app (on plots) on shinyapps.io. I have my Roboto-Regular.ttf in the ./www/ directory. And this is the upper portion of my app.R file: dir.create('~/.fonts') system("chmod +x ./www/Roboto-Regular.ttf") system("cp ./www/Roboto-Regular.ttf ~/.fonts/") system('fc-cache -f -v ~/.fonts/') system('fc-match Roboto') library(ggplot2) library(shiny) library(shinythemes) library(extrafont) font_import(pattern="Roboto",prompt=FALSE) loadfonts() print(fonts())

Adding a vertical and horizontal scroll bar to the DT table in R shiny

人盡茶涼 提交于 2019-12-09 05:00:20
问题 Please check the data table "Case Analyses Details" on the right. I want to fit the data table within the box, such that it aligns from right and bottom border in the box, such that we add a horizontal and vertical scroll bar to the DT which can be used to span the rows that overshoot the box. ## app.R ## library(shiny) library(shinydashboard) library(DT) ui <- dashboardPage( dashboardHeader(title = "My Chart"), dashboardSidebar( width = 0 ), dashboardBody( box(title = "Data Path", status =

R Shiny: how to use fontawesome pro version with the icon function?

你离开我真会死。 提交于 2019-12-07 14:47:23
问题 I'm using fontawesome icons throughout my Shiny app via the icon function. I've downloaded the pro version of fontawesome, and used the instructions here: shinydashboard some Font Awesome Icons Not Working to replace the free version that Shiny is using by default (inside shiny\www\shared\font-awesome ) with my paying version. This works very well locally, and all the pro icons show in my app. However, when I deploy to shinyapps.io , it seems like Shiny goes back to using the default version.

Login Screen For My Shiny App Does Not Time Out

孤者浪人 提交于 2019-12-06 08:04:52
问题 I have a shiny app where I have added authentication. The app is hosted on shinyapps.io and I have a few clients using the app. However, one client does not close his browser tabs, leaving the login page idle. I have found out that the login page does not time out. It remains idle and constantly eats up my active hours. Here is what my shiny app logs look like plus the front authentication page. I am using the shinymanager package. I have set the shiny app settings to time out after 10

Login Screen For My Shiny App Does Not Time Out

左心房为你撑大大i 提交于 2019-12-04 12:36:50
I have a shiny app where I have added authentication. The app is hosted on shinyapps.io and I have a few clients using the app. However, one client does not close his browser tabs, leaving the login page idle. I have found out that the login page does not time out. It remains idle and constantly eats up my active hours. Here is what my shiny app logs look like plus the front authentication page. I am using the shinymanager package. I have set the shiny app settings to time out after 10 minutes of being idle. This works great if you are logged in. However, when you are not, it does not time out

How to display data in MainPanel based on user selection in Shiny R?

廉价感情. 提交于 2019-12-04 06:40:54
问题 My dataframe looks like below, and I would like to build ShinyApp such that when user selects System from SidebarPanel only info. related to selected system gets displayed in mainpanel . Currently, below app displays entire datatable in mainpanel. I am new to shiny and I not sure how to hide datatable in mainpanel . Is there any functionality available in Shiny ? Provide explanation with code DataFrame > df <- data.frame("Users" =c('A',"B","A",'C','B'), "Date" = c('17 Mar 2019','15 Mar 2019',

Adding a vertical and horizontal scroll bar to the DT table in R shiny

孤者浪人 提交于 2019-12-03 21:24:17
Please check the data table "Case Analyses Details" on the right. I want to fit the data table within the box, such that it aligns from right and bottom border in the box, such that we add a horizontal and vertical scroll bar to the DT which can be used to span the rows that overshoot the box. ## app.R ## library(shiny) library(shinydashboard) library(DT) ui <- dashboardPage( dashboardHeader(title = "My Chart"), dashboardSidebar( width = 0 ), dashboardBody( box(title = "Data Path", status = "primary",height = "595" ,solidHeader = T, plotOutput("trace_plot")), box( title = "Case Analyses