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
Can R be embedded in html?
6 messages · chawla, R. Michael Weylandt, Jagat.K.Sheth at wellsfargo.com +3 more
Google for the new Shiny package from RStudio. Michael
On Nov 28, 2012, at 3:04 PM, chawla <chawla at bio.ntnu.no> wrote:
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
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
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
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- project.org] On Behalf Of chawla Sent: Wednesday, November 28, 2012 9:04 AM To: r-help at r-project.org Subject: [R] Can R be embedded in html? 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
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121129/a6f0eba2/attachment.pl>
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:
I grab the opportunity to suggest giving a try `pander` package, which holds a forked version of `brew` called `Pandoc.brew`. If you are familiar with `brew`, you could easily create nicely formatted HTML output automatically beside other formats, example: http://rapporter.github.com/pander/#examples But if you want to run those files directly, then RApache is the way to go with `RHandler brew::brew`, although that would end up in a spaghetti code. It's better to keep R and HTML separately in the long run. Best, Gergely On Thu, Nov 29, 2012 at 4:41 PM, <Jagat.K.Sheth at wellsfargo.com> 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
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- project.org] On Behalf Of chawla Sent: Wednesday, November 28, 2012 9:04 AM To: r-help at r-project.org Subject: [R] Can R be embedded in html? 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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121129/e609be21/attachment.pl>