The RHTMLForms Package

RHTMLForms_0.6-0.tar.gz (19 September 2012)

This package allows us to read HTML documents and obtain a description of each of the forms it contains, along with the different elements and hidden fields. We can then programmatically generate an R function that allows us or others to treat the form as if it were an R function.

The basic steps are

library(RHTMLForms)
forms = getHTMLFormDescription("http://www.itis.gov/servlet/SingleRpt/SingleRpt")
fun = createFunction(forms[[1]])
o = fun(search_value = "dog")

The package provides functionality to obtain descriptions of HTML forms and their elements. It also provides run-time functionality for invoking the form, such as validating the arguments.


Duncan Temple Lang <duncan@wald.ucdavis.edu>
Last modified: Mon May 25 11:42:31 PDT 2009