HTML forms for R, with checking and autofill