shiny-server

R shiny different output between renderTable and renderDataTable

眉间皱痕 提交于 2019-12-03 11:53:06
问题 I have a shiny application that shows a nice html table of my data, using renderDataTable . Then I wanted to make some basic statistics, subset data and calculate means and some other data. When showing results with renderTable , I found that date column was not shown in date format. In the figure ou can see the difference. Both tables are generated from the same dataset in the same shiny web app. Can you explain what's happening? And here you can see ui.R and server.R. In this script I just

How to host Shiny apps on windows server?

巧了我就是萌 提交于 2019-12-03 10:08:29
问题 I have developed some shiny apps which I want to make available to a few selected internal users for testing purposes and continued development. Deploying the apps on the cloud or on shinyapps.io is not an option, as the apps are handling sensitive internal data. Using ShinyServer is unfortunately also not an option, as we have a strict Microsoft only IT architecture and I thus have available only a virtual machine with Windows Server 2012 R2 on it. I have been doing some web search and have

R Shiny/ Restful Api Communication

旧巷老猫 提交于 2019-12-03 06:46:42
问题 I have a shiny app that takes an input file in Json Runs it through a classifier and returns a classified Json object. I want the app to be able to communicate with an API. I want the API to post a file to the Shiny App which will do its work and return a classified object. Basically I want the Shiny app to sit in the background until a file is posted and then do its work. I know that I can use GET from the httr package to get a file from a url. I can put this in the shiny.server file which

How to host Shiny apps on windows server?

拟墨画扇 提交于 2019-12-03 01:48:15
I have developed some shiny apps which I want to make available to a few selected internal users for testing purposes and continued development. Deploying the apps on the cloud or on shinyapps.io is not an option, as the apps are handling sensitive internal data. Using ShinyServer is unfortunately also not an option, as we have a strict Microsoft only IT architecture and I thus have available only a virtual machine with Windows Server 2012 R2 on it. I have been doing some web search and have found out the following: i.) I could host my apps on the Windows machine as explained here: https:/

R shiny / shiny-server - issue with finding packages

假装没事ソ 提交于 2019-12-03 01:28:17
I have installed shiny and shiny-server on an ubuntu server. I did a similar install on a dev server which is working. R sessions when they open up load some packages. The app runs fine locally but I'm getting messages that it can't find the packages when running on shiny-server. The error on the app During startup - Warning messages: 1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘shiny’ 2: package ‘shiny’ in options("defaultPackages") was not found 3: In library(package, lib.loc = lib.loc, character.only = TRUE, logical

R Shiny/ Restful Api Communication

对着背影说爱祢 提交于 2019-12-02 20:24:00
I have a shiny app that takes an input file in Json Runs it through a classifier and returns a classified Json object. I want the app to be able to communicate with an API. I want the API to post a file to the Shiny App which will do its work and return a classified object. Basically I want the Shiny app to sit in the background until a file is posted and then do its work. I know that I can use GET from the httr package to get a file from a url. I can put this in the shiny.server file which is fine if I know the file name for the get command However the filenames coming from the API will be

Understanding the scalability of RShiny apps hosted on ShinyServer

社会主义新天地 提交于 2019-12-02 17:37:42
I am building a series of interactive shiny web apps for a project that I am considering turning into a Company. My background is in data science and I don't have a lot of experience on the web app / server side of things, but these are important aspects for me to consider with my project. I currently have an Amazon Linux AMI EC2 instance with ShinyServer (free, open-source) installed, and I am currently hosting early versions of my web apps there. So far everything works fine, but I haven't made the links public yet. My first question is whether anyone knows if there are certain limitations

Publish Rstudio Shiny App in intranet

蹲街弑〆低调 提交于 2019-12-02 16:51:45
I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows guy, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks! you don't need shiny server for this, you just need to run an R instance with shiny http://rstudio.github.io

Capture the label of an actionButton once it is clicked

馋奶兔 提交于 2019-12-02 10:23:55
问题 Is it possible to capture the label of an actionButton once it is clicked? Imagine I have 3 buttons on my ui.R and depending on which one I click I want to perform a different action on the server.R. One caveat is that the buttons are created dynamically on the server.R with dynamic labels (thus the necessity of capturing the label on click) Thanks 回答1: 1) What button was clicked last by the user? To answer this you can user observeEvent function and by setting up a a variable using

r shiny error Error in as.vector(x, “character”) : cannot coerce type 'closure' to vector of type 'character'

二次信任 提交于 2019-12-02 10:15:53
While trying to pass an user entered input (empId) from Shiny UI into a sql query on shiny server.r not sure how to debug this error. Error in as.vector(x, "character") : cannot coerce type 'closure' to vector of type 'character' UI.r library(shiny) shinyUI(fluidPage( titlePanel("Employee Table (AdventureWorks)"), sidebarLayout( sidebarPanel((""), textInput("idnumb", "Employee ID number",""), submitButton("Ok")), mainPanel(tableOutput("emptitle"))))) Server.r shinyServer(function(input, output) { library(RODBC) library(sqldf) a1 = reactive({ (input$idnumb) }) acc_con1 = odbcConnect("AdvWrk",