header: Simple HTML header and footer

Description Usage Arguments Details Examples

View source: R/utils.R

Description

Convenience functions to print some simple HTML

Usage

1
2
3
4
5
header(title = "Experiment", refresh = NA)

footer()

next_form(text = "Next")

Arguments

title

Page title.

refresh

Number of seconds after which the page should refresh from the server.

text

Text of the submit button.

Details

header prints an HTML header with an optional title and refresh time.

footer prints the corresponding footer.

next_form prints a simple HTML form with a single submit button. NB: do not use next_form within your own <form> tags. That will cause malformed HTML and break your web page. Instead just do it yourself: "<input type='submit' value='Next'>"

Examples

1
2
s1 <- text_stage(page=paste0(header(), "<b>Got here!</b>", next_form(),
     footer()))

hughjonesd/betr documentation built on May 17, 2019, 9:11 p.m.