Various ways to share R shiny app with coworkers - r

I have developed a shiny app for my coworkers. They dont have any programming experience and dont know anything about R. So I would like to share the Shiny app through the local LAN.
What are my options to build a local server. How do I explain to my IT department the necceseties to get the app running for my coworkers to see?

Related

Mobile shiny app that runs offline, no connectivity

I am trying to make a shiny app that can be used on a smart phone without connectivity.
I have found several examples of shiny apps being bundled into something convenient and run on a desktop or mobile device, but they all still require an internet connection. I want the mobile app to be able to run locally with no connectivity.
The closest thing I have seen is making a shiny app into a Progressive Web App (PWA). PWAs in general do have the ability to run without connectivity, but shiny PWAs that I have found still require connectivity.
List of similar resources:
shiny as standalone electron app (not for mobile) Deploying R shiny app as a standalone application
PWAs for shiny https://github.com/pedrocoutinhosilva/shiny.pwa
shinymobile - does create PWA https://rinterface.github.io/shinyMobile/
From what I can tell, all these and others still require internet connection, though.
Any options for an app that can run on a smart phone without connectivity?
For an epidemiological cohort study, a Shiny app was developed to run completely offline in Android mobile devices. The app was designed for field level data capture. The code to setup the Android devices so that the Shiny app runs locally, offline, was published in GitHub, https://github.com/dmrodz/htrack. The installation_and_dependencies section contains the setup needed for the mobile device to run R (and the app) and deploy in the default browser (offline/locally).
The development of this app was peer-reviewed:
Rodríguez, D.M., Ryff, K., Sánchez-Gonzalez, L., Rivera-Amill, V., Paz-Bailey, G., Adams, L. (2020). HTrack: A new tool to facilitate public health field visits and electronic data capture. PLoS ONE 15(12): e0244028. https://doi.org/10.1371/journal.pone.0244028

Poor download speed after publishing shiny app

I have created an R shiny app to create some output. When I run it in local the app generates and downloads output instantaneously.
But when I publish it on a free R shiny server, it takes almost 20-30 mins to download the same file. The file size is 10MB.
Can you tell me the reasons for this?
Is there a work around ? Do I need to purchase a premium Rserver or something?
There is no common measures between a desktop computer and a web server especially mutualized servers such as free offering from cloud servers. Your desktop computer is often far more powerfull (memory/cpu/network).
Beside this the download is handled by the internal web server of shiny (httpuv to name it). It is quite good but not as good as full blown web servers that are built for this (apache, nginx, ...)
Moreover R is mostly single threaded (that means it does one thing at a time). Handling a download and responding to the user through UI are separate tasks.

R Shiny App on an iPad in Internet Denied Locations

I currently have a number of Shiny Apps that I've developed that I'm looking to deploy on different platforms. I'm struggling with the problem of deploying a Shiny App (or some derivative of it) to an iPad that does not have internet access. Although it is possible to create a separate app for this purpose, most likely with React-Native, I'm trying to find a way to recycle as much code as possible.
Thus far, I've explored using tools to run the Shiny App as an electron application using R Shiny Electron (https://github.com/dirkschumacher/r-shiny-electron). More background is provided here https://www.youtube.com/watch?v=ARrbbviGvjc .
I was successfully able to use this tool to run my app with Electron but I realize that running Electron on an iPad is not feasible. I was hoping to salvage some JS used in this electron process in a react native app but I haven't found a way to do that yet either.
Does anyone have some insights as to how I could convert the electron app to React-Native without starting from scratch or at least use some of the Shiny code (preferably UI components) in a way that can be run on an iPad?

ShinyApps.io vs. Github

Instead of hosting my Shiny App on shinyapps.io, is there a way I can host it on github for free with unlimited hours?
If so, does anyone have resources to help me do this?
I really want to avoid paying $100/month for unlimited hours and just host my shiny app on github instead. The ultimate goal is to add a link to my shiny app on my website built in R (rmarkdown::render_site()). Thanks!
I don't know of any way of hosting a shinny app for free that allows unlimited hours, as Dean Attal said in the comments Digital ocean is a good option but there are other option Vultr gives more RAM for the same cost, also you can try with any VPS provider in Lowendstock are the cheapest VPS.
This article explain how to put a shinny server on a VPS.

R Shiny - Access an App on my Local Machine

I can not avoid windows at work. As such, I have a second machine that I use to do all of my heavy lifting and data analysis. In an ideal world, I could create a Shiny app and access it from another computer on my work's local network.
The solution that my IT folks proposed was using Remote Desktop, which COULD work, but I don't really want other users locking the machine.
Does anyone have insight as to how I can allow computers on my network to view my Shiny apps? I should have admin rights on my 2nd machine in case I need to tweak a few settings.
EDIT: While my ideal use case is Shiny, I would also want to access other R-based reports like Slidify presentations, compiled R Markdown reports, and perhaps, Gitbooks compiled to stand-alone websites.
Thanks in advance.
It should be sufficient to set the host argument to 0.0.0.0 to allow it to broadcast beyond localhost, e.g.
runApp("app_name",host="0.0.0.0",port=3168)
Then you can visit http://machine2DNSname:3168 to see it.

Resources