News for hackers. Stuff that matters.
Re:Most commonly used statistical tests and implementation in R by sandGorgon on Friday January 01, 2016 @02:10AM (#10821321)
That is great to know!

Is opencpu something you recommend for production? I'm just starting to work with analysts who work in R, and I have struggled with the question whether we should wrap existing R code as an api...or port to python.

Low volume right now, so not really concerned with performance... But rather that can R deployment play nicely with things like supervisord,etc in production

Re:Most commonly used statistical tests and implementation in R by earino on Friday January 01, 2016 @02:30AM (#10821348)
Well, I really don't want to turn this into a sales pitch, but that's the exact use case for Domino's API endpoints. Check out http://support.dominodatalab.com/hc/en-us/articles/204173149... for an explanation. If you're interested, drop me an email and I can work up an example project for you. Exposing R algorithms as REST endpoints is exactly what it does quite well.

As for OpenCPU, I know that the guy who wrote it, Jeroen Ooms is genuinely quite brilliant. I know it was his project during his PhD, and I don't know what his plans are for continuing to support it. It's up to you to determine what that means for your "production" needs.

Re:Most commonly used statistical tests and implementation in R by sandGorgon on Friday January 01, 2016 @02:41AM (#10821364)
Interesting. Did you post about this on /r/rprogramming

There are lots of people who have rolled their own solutions for production deployment. Including nodejs !

Re:Most commonly used statistical tests and implementation in R by earino on Friday January 01, 2016 @01:39PM (#10822756)
Greetings!

So I made a small demo for you. If you go to https://app.dominodatalab.com/earino/d3_dashboard_demo/raw/6... you will see a very simplistic, d3 powered, R backed dashboard. It just draws a pie chart, a line chart, and a bar chart. Every 10 seconds, it polls an R API endpoint to get new data.

The code for the R endpoint is https://app.dominodatalab.com/earino/d3_dashboard_demo/view/.... It's a simple R function which generates synthetic data. It could be used to pull much more complex data, generate predictions from an ML model, etc...

Please don't hesitate to reach out if you have any questions!

Re:Most commonly used statistical tests and implementation in R by sandGorgon on Friday January 01, 2016 @02:17PM (#10822935)
this is awesome! you should put stuff like this on the front page of your site. It makes it incredibly simple to understand what you are about.
Re:Most commonly used statistical tests and implementation in R by phillc73 on Friday January 01, 2016 @06:21AM (#10821634)
I've also used Shiny to construct fairly complicated web apps, with dashboards (using shinydashboard). It's very good, up to a point.

I keep banging my head against issues around persistent data storage and app customisation at a user level. Unless one pays for Shiny Server Pro, the free Shiny Server doesn't support user authentication. Hosting on shinyapps.io doesn't really support persistent user data, unless it's offloaded elsewhere such as Dropbox or a remote SQL database, which brings into play a bunch of security questions.

Shiny is good, but not quite yet outstanding.

I was really interested in an article I read recently about using jQuery.ui widgets and R to build interactive web app.[1] I'm keen to explore this as a potential way forward.

[1] http://www.r-bloggers.com/creating-multi-tab-reports-with-r-...

Re:Most commonly used statistical tests and implementation in R by sandGorgon on Friday January 01, 2016 @08:15AM (#10821800)
That's interesting to know. The reason shinydashboard or something else a nice is because the data scientist can work on his own. Expecting him to learn js would be a dead end.

I am willing to bet that he would rather use R api and excel to build a dashboard, rather than anything else.

Re:Most commonly used statistical tests and implementation in R by phillc73 on Friday January 01, 2016 @09:53AM (#10822005)
If you just want a personal or internal dashboard, then Shiny is a good solution, but you will need to deal with setting up and managing Shiny Server. If you don't care about the world viewing the dashboard, or can afford a small fee each month, then shinyapps.io is a decent solution.

I just wanted to point out that there are limitations with this route, when the apps start to become more complex, with multiple users, various access permissions and personalisation requirements.