[R] Can we prepare a questionaire in R

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Wed Jun 8 16:51:31 CEST 2011


On Wed, Jun 8, 2011 at 12:56 PM, amrita gs <ammasamritha at gmail.com> wrote:
> How can we create HTML forms in R????

 HTML is Just Plain Text, so you can create them using R's text output
'cat' function. E.g.

cat('<form> First name: <input type="text" name="firstname" /><br
/>Last name: <input type="text" name="lastname" /></form>',
file="test.html")

 and job done. Open test.html in your web browser and there it is.

 Other packages may help you construct these things - search CRAN for
html, and also 'brewer' which is a handy package for making templates
which you can render into HTML.

 But to be honest, your question is way too general as stated to get a
decent response here.

Barry



More information about the R-help mailing list