Rooks in the cloud

[This article was first published on Rrasch, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Ever since R was born (evoked?) geeks have been trying to get it to talk HTML. A list of web interfaces for R is updated on CRAN here. Aims are various. Some seek to replace R with a traditional GUI. Others are more ambitious and open up a glimpse of an architecture that provides live analysis of ever changing data.

Perhaps the most exciting of the architectures is Rook a R web service that takes advantage of the built in web server in R.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function(env){
  body = paste("<h1>Hello World! This is Rook",env$rook.version,".</h1>")
  list(
  status = 200L,
  headers = list(
  "Content-Type" = "text/html"
  ),
  body = body
  )
}

setRefClass(
  "HelloWorld",
  methods = list(
  call = function(env){
  list(
    status = 200L,
    headers = list(
    "Content-Type" = "text/html"
    ),
    body = paste("<h1>Hello World! This is Rook",env$rook.version,".</h1>")
    )
  }
  )
)

Cool!

While I love R, however, there are some things that I’m really not sure it should be doing everything. Making toast and being a web server two of them. The joy of django and Ruby is that they do stuff for you like look after cross site validation forgery requests. I’m a whizz with R, but I wouldn’t know where to start with those ones.

Anyhow, if the architecture exists where are the applications?

Over at Cambridge we have the brilliant Concerto which makes writing an adaptive test using catR a breeze. It really is worth a go. They will even host a demo account for you.

Elsewhere Jeroen Ooms cuts a lonely figure in R web services. Linear models and ggplots in web interfaces. Check them out here and how he did it here.

But where are the applications reaching critical mass? Where is the Ruby, django R integration work going on?

To leave a comment for the author, please follow the link and comment on their blog: Rrasch.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)