Create an HTML document called "ass2.html" that, when run from R using ...

    Rpad("ass2.html")
    

... produces an HTML Form like this:

It should be possible to select any number of check boxes BUT only one radio button.

The HTML document should include R code sections that perform the following tasks:

  1. If the 'walk' checkbox is not checked, then the only valid radio button is '0'. Otherwise an error message should be printed, like this:

  2. When the 'Submit Answers' button is pressed, the current contents of the form should be saved within an R data frame and ...
  3. ... when the 'Show Data' button is pressed, the current contents of the R data frame should be displayed as an HTML table, like this:

The assignment is due at the third lecture (9:00am Thursday October 25).

Submit your assignment by emailing it to me.