shiny-server

R shiny / shiny-server - issue with finding packages

天大地大妈咪最大 提交于 2019-12-20 11:08:46
问题 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(

Understanding the scalability of RShiny apps hosted on ShinyServer

倖福魔咒の 提交于 2019-12-20 09:00:39
问题 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

Publish Rstudio Shiny App in intranet

三世轮回 提交于 2019-12-20 08:48:10
问题 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! 回答1:

How can I install a R package on a offline Debian machine?

狂风中的少年 提交于 2019-12-20 06:05:02
问题 I have an Debian VM which is not connected to internet. Yet, I can still scp any file from my local machine which does have internet connection. To provide a little bit context, I am trying to host an shiny app on the VM. I can still install an old version of R 3.1.1 with the "apt-get" command: sudo apt-get update sudo apt-get install r-base sudo apt-get install r-base-dev Yet, still can't find the "shiny" package when check the list: sudo apt-cache search "^r-.*" | sort So, I am thinking

Hosting LAN Shiny apps run from command line

眉间皱痕 提交于 2019-12-19 10:47:46
问题 I am trying to host a Shiny app on a machine hooked up to a LAN. In the directory housing my app, I have the server.R, ui.R, and launcher.R scripts. The launcher.R file looks like: #!/usr/bin/Rscript library(shiny) setwd("~/path/to/shinyApp/") shiny::runApp(host="0.0.0.0",port=4414) When I run this via RStudio, the app launches, behaves normally, and can be accessed by other machines through the LAN by going to 987.65.43.21:4414 in a browser. When I run the app with launch.browser=T , the

Add/remove input fields dynamically by a button in shiny AND keep values

老子叫甜甜 提交于 2019-12-19 10:29:27
问题 my question is a followup question on the following discussion: How to add/remove input fields dynamically by a button in shiny I want a be able to add/remove dynamically input with action button on shiny app, but also when I add a new input I want the values of the input fields to remain instead of change as it is now. Can you help me with this? For example if I change the first box and add another text input via the button, the value of the first box has been reset with the default one.

R - How to set the path of install.packages() for shiny server ? - Ubuntu

家住魔仙堡 提交于 2019-12-18 16:56:10
问题 For my system: Ubuntu 12.04 and R 3.03 , whenever I install a custom package in R via >install.packages() the package is installed by default to /home/USER/R/x86_64-pc-linus-gnu-library/3.0/ as opposed to system-wide in /usr/local/lib/R/site-library/ which is needed for shiny-server to work with that package. My temporary solution is to copy the packages to the correct folder after the fact. Question: How can I set the default install path from the start to avoid this problem? 回答1: Yes -- I

R Markdown with Shiny Server change host parameter

北城以北 提交于 2019-12-18 12:35:13
问题 I am running RStudio on a server and I created a RMarkdown (.Rmd) file. It works fine if I create it as a static HTML but it does not work if I want it to be interactive (by adding runtime:shiny ). The issue is that when I add runtime:shiny and press the Run Document button the application will try to open at 127.0.0.1:xxxx (here xxxx is a random port). In order to make it work I would have to be able to change the host parameter to '0.0.0.0'. This is an option in the runApp function from the

ERROR: An error has occurred. Check your logs or contact the app author for clarification

偶尔善良 提交于 2019-12-18 06:59:07
问题 Error Screen2 Error Screen1 while publishing app on web getting error called: check your log or contact the app auther.please find above image links ERROR: An error has occurred. Check your logs or contact the app author for clarification. if anyone can help me to resolve this error I'd be grateful. 回答1: There are multiple reasons for this error. Rstudio has provided multiple reasons (link below) but most common are: Environment variables not the same in shiny web vs. local (make sure working

Passing data within Shiny Modules from Module 1 to Module 2

杀马特。学长 韩版系。学妹 提交于 2019-12-18 04:42:19
问题 I dont have a reproducible example as the question is more on how modules work. I am trying to understand how to pass some reactive function from one module to the next. I have received replies in the past about using ObserveEvent but they have not seem to work when I am using the reactive value in one module to perform some other operation in another module module1 <- function(input, output, session){ data1<-reactive({ #some reacttive funcion that produces an output }) data2<-reactive({