Blog Archives

Add An Export Module to Shiny-app for Highcharts Figure

October 17, 2014
By

Highcharts is the best JavaScript chart library, I feel. By default, there is an export button which can let you save the interactive figure to PNG, JPEG, PDF and SVG format, and one important point is, you can use it in your shiny app through R package rCharts. However, there are some limits in such a way, the default...

Read more »

Design A Bilingual Shiny Application

October 17, 2014
By

(This article was first published on Category: R | Huidong Tian's Blog, and kindly contributed to R-bloggers) It’s a common requirement that your Shiny application should be bilingual. I have tried several methods and finally I got one which is not so difficult to maintain. My idea is: Create a bilingual dictionary or a lookup table which contains three...

Read more »

Generate Distinct Colors

June 16, 2014
By
Generate Distinct Colors

When plot with R (or some other software), it doesn’t bother you a lot for choosing colors if you have only several data series. For example, if I want to create a figure for 5 data series, I can choose red, green, dark green, blue and black. But what if I need to create a figure having 100 data...

Read more »

A Shiny-app Serves as Shiny-server Load Balancer

April 30, 2014
By

The Shiny-app on open-source edition Shiny-server has only one concurrent, which means it can run only for one user at a time point. But it can host multiple Shiny-apps, which can run synchronously. So, if we create severl Shiny-apps with different names but same function, then we can let more users use our service at same time. But users...

Read more »

Automatically Scrape Flight Ticket Data Using R and Phantomjs

April 30, 2014
By

I used to scrape static web pages with the R package RCurl. It’s a great package! When it comes to dynamic web pages, RCurl comes to be difficult to set up (actually, I never get it works). Then I met Phantomjs. PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for...

Read more »

Set Up Shiny-server on www.digitalocean.com

April 23, 2014
By
Set Up Shiny-server on www.digitalocean.com

RStudio supplies several servers for hosting user’s apps, e.g. http://www.shinyapps.io/, http://spark.rstudio.com, http://glimmer.rstudio.com. Thanks a lot to RStudio who has contributed many excellent R libraries! I want to set my shiny-server on a virtual private server (VPS), because I have some other tasks and I feel a VPS is more stable than the PC under my desk.

Shiny-server System Performance Monitoring for Open Source Edition

April 9, 2014
By
Shiny-server System Performance Monitoring for Open Source Edition

If you have deployed your Shiny-app on internet, you may curious about: how many users are using my app? Is the server powerful enough for hosting the app? You can get answers through the Server monitoring feature if you are using the Professional edition of Shiny server. What if we are using the Open source edition? Officially, there...

Read more »

Shiny-server Open Source Edition: Solution for CPU Bound Apps

March 19, 2014
By
Shiny-server Open Source Edition: Solution for CPU Bound Apps

Shiny-server integrates the statistic power of R with web, convenients the statistical analysis through web. Users can do complecate statistical anlysis through their web browsers. However, most of statistical analysis of R are CPU bound computation, that means CPU utilization is high, perhaps at 100% for many seconds. This leads to the problem of thread blocking: if one user...

Read more »

Encrypt user’s password with md5 for you Shiny-app

February 14, 2014
By

In a previous blog, I post a simple authentication method for Shiny-app, and received several comments mainly concerning that I should encrypt user password. I agree, user’s password can be intercepted when it was transferring. To secure users’ personal information, I think we should consider both server and client sides. Your server could be hacked and...

Read more »

Turn your Mac into a server for sharing photos

February 11, 2014
By
Turn your Mac into a server for sharing photos

A month ago, I attended a friend’s wedding as a photographer (I am not good at shooting, just have a not so bad camera). I took more than 1000 pictures in high quality format. Later, I relized to share them with the guests attended wedding is a challenge: I need to go through every picture to identify if it...

Read more »