tests/3.R

# Test arbitrary page titles.

library('SortableHTMLTables')
library('testthat')

sortable.html.table(iris,
                    output.file = 'iris.html',
                    output.directory = 'iris',
                    page.title = 'Iris Data Set')

text <- paste(readLines(file.path('iris', 'iris.html'), n = -1), collapse = '\n')

expect_that(text, matches('Iris Data Set'))

unlink('iris', recursive = TRUE)

Try the SortableHTMLTables package in your browser

Any scripts or data that you put into this service are public.

SortableHTMLTables documentation built on May 2, 2019, 2:30 p.m.