[R] Can we prepare a questionaire in R

Mike Marchywka marchywka at hotmail.com
Wed Jun 8 12:09:03 CEST 2011







----------------------------------------
> Date: Wed, 8 Jun 2011 12:37:33 +0530
> From: ammasamritha at gmail.com
> To: r-help at r-project.org
> Subject: [R] Can we prepare a questionaire in R
>
> Is there a way to prepare a questionnaire in R like html forms whose data
> can be directly populated into R?????
>

I've started to use Rapache although Rserve would also be an option.
When installed on server, your can point your html form to an rhtml
page and get the form variables in R just as with other web languages.
For writing html output, I had been using R2HTML ( see code excerpt below
from rhtml page). I had also found Cairo works ok if you don't
need X-11 for anything. 

For your specific situation however, it may be easier to just
use whatever you already have and just use R for the data analysis.
When a request for a results report is made,  send that to Rapache for
example. I would mention that I have gone to running two versions
of Apache, one with R and one with PHP, to allow for security and
easier development( I can write the php to fail nicely if the R apache
server is not up and no new security issues are exposed). 


library("Cairo")
library("R2HTML")
library("RColorBrewer")


You can of course also generate html from normal R commands, or for that
matter bash scripts etc.

  		 	   		  


More information about the R-help mailing list