Skip to content

Can R be embedded in html?

6 messages · chawla, R. Michael Weylandt, Jagat.K.Sheth at wellsfargo.com +3 more

#
Hi
I have previously used PHP script in HTML to connect website with the 
database and do analysis.
Is it also possible to execute R scripts within HTML files?
Basically I want to create an application where user can input data such 
as gene list and their expression values, which can be processed by R 
and result be displayed or made available for download.
If there is some guide on how to do this please give the link.
Thanks
Konika
#
Google for the new Shiny package from RStudio. 

Michael
On Nov 28, 2012, at 3:04 PM, chawla <chawla at bio.ntnu.no> wrote:

            
#
Try R package 'brew'? From its package description 

Description:        brew implements a templating framework for mixing
                    text and R code for report generation. brew
                    template syntax is similar to PHP, Ruby's erb
                    module, Java Server Pages, and Python's psp module.

There is also the rApache project and many other useful links mentioned on R Web Interfaces on the R FAQ page.

Jagat
#
I did not read every reply; perhaps someone has already mentioned
Shiny. There are a few live examples of "embedding R in HTML" here:
http://www.rstudio.com/shiny/

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Thu, Nov 29, 2012 at 10:34 AM, Gergely Dar?czi <gergely at snowl.net> wrote: