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.
Related
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.
For security reasons, I need to run a Shiny app on an internal server. I am able to talk to IT about getting it there, but I am one of two people at my company who use R, so IT has never come across this situation before.
I have been looking online for ways to support a shiny app internally, but I have not been able to really find anything useful that has been posted recently. I know R changes frequently and is constantly improving, so articles from 2010 or 2014 aren't as helpful as I'd like.
I am looking for information I can bring to my IT department to help them get my app onto the internal server without them having to do a lot of research into R.
The answer very much depends on your needs, depending on the complexity of the app and the number of simultaneous users. Since this is only internal, you may not need to go through the lengths described in Pork Chop's comment.
In the most basic instance, you can load RStudio on an existing server and use runApp (the normal way of initializing a shiny app). In the top left corner you will see an internal http address, as well as an "Open in Browser" button. Any user connected to the server can navigate to the internal address and use the app. If you are unlikely to have concurrent users, and don't mind dedicating an RStudio instance to the app, then this is the easiest way for IT to deal with it. Note that this implementation is very limited.
The next level up would be an open source Shiny Server Community Edition, which is free to use. The process to set it up is more complex, but is covered here: http://docs.rstudio.com/shiny-server/ Please note that this is the documentation for the pro version, however I believe that it is the same documentation for the open source version. All of the open source guides link to it on shinyapps.io. To download Shiny Server Community Edition visit here: https://www.rstudio.com/products/shiny/download-server/ or you can look at the differences in products here: https://www.rstudio.com/products/shiny/shiny-server/
What setup would you recommend for Wordpress website with average daily traffic ~250,000 sessions per day (~130K unique users). In peak hours we can get ~25K users in hour, and non peak ~10-17k per hour.
Monthly bandwidth is ~14TB.
I'll be happy to hear suggestions on what is the best setup:
Note: it should be cpanel server (apache)
Server - cloud or dedicated (all except google cloud and amazon)
CPU/Memory/etc ?
CDN ?
Apache/MySQL specific setup?
High availability?
Any other suggestion
Very appreciated for any advice
It depends what type of traffic do you have?
Is this just one page traffic (bringing referrals from sources like social media, forums, blogs, etc..). Why i'm asking this?
Yes! it really matters.....
Traffic::
Usually traffic brought from sources, browse a landing page there's wouldn't be any unique counts, so in that case your cache plugins can't spend more effort in terms of performance. If users are giving you nice no of pageviews in that case your cache plugin will manage the performance and will give you the best result.
Hosting:
Definitely that you cannot run your website through any shared hosting OR WORDPRESS HOSTING if you are going to have this much of volume. Don't consider having a VPS/Dedicated through any hosting company, it doesn't matter how big that hosting company is. Third party hosting companies will never give you prompt support and will never even guarantee you that if you bring that much of traffic, it will remain as stable as in fully working condition. so consider having VPS/Dedicated hosted in Data Center not through any third party vendors. Try if you could get Cloud VPS OR cloud solution as a service part.
CDN:
If you have good budget then consider using Amazon, Avg. budget use Cloudflare OR MaxCDN.
Hardware: 16GB Ram, 8 Core CPU, 60GB (If you are not planning much updates on your website), 20Gbps Network, 25TB Bandwidth. VPS would do your job and can manage the traffic you considering. I don't think so you should go for dedicated.
Setup & Configuration:
Install Debian 8, Virtualmin (Free) + Nginx and optimize it to use for high traffic. Do not install WHM, don't do this mistake, if you do then you might need premium support to fix issues every single day. Virtualmin is light panel and wordpress is it's specialty. Nginx has ability to deliver high traffic website, mysql optimization, cache management and it can deliver what you looking at.
Themes & Plugins:
Try to go with light wordpress theme, install minimal plugins. Must have plugins are Nginx Helper & W3C Total cache.
There's lot of things on this to talk about, but i think these are important once and should be helpful. Hope my explanation helps you to understand! If you have any doubt feel free to ask...
Attached is the proof of what i explained. This server has configuration of 4GB Ram, 4 Core CPU & Cloud VPS
I'm developing a meteorjs application and wondering what is better , actually deploying in meteor js cloud is elegant , free , and work perfectly, but is this will still free , is their any limit or compensation .
This question is very obscure by nature and will receive mostly opinionated answers. I have a feeling it will be closed before too long but for archival sake and to answer your question. Meteor's current free deployment has no guarantee of uptime and shuts down the app when not in use until another user attempts to access your app. For demo's and prototyping this should be fine.
However I would highly suggest that if you need something reliable and for use in a production environment stay far away from the current Meteor service for deployment. You are limited to a database size and how much access you have to things such as the file server. There are many great services out there that allow you to deploy just as easily.
Check out modulus.io for super simple deploys. If you are on more of a budget you can choose a service such as Digital Ocean or any other VPS service that allows you to install Ubuntu and use something such as MUP which is a great package made by Arunoda for deploying to Ubuntu based systems.
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.