Nothing
context("Worksheet naming")
test_that("Worksheet names", {
### test for names without special character
wb <- createWorkbook()
sheetname <- "test"
addWorksheet(wb, sheetname)
expect_equal(sheetname,names(wb))
### test for names with &
wb <- createWorkbook()
sheetname <- "S&P 500"
addWorksheet(wb, sheetname)
expect_equal(sheetname,names(wb))
expect_equal("S&P 500",wb$sheet_names)
### test for names with <
wb <- createWorkbook()
sheetname <- "<24 h"
addWorksheet(wb, sheetname)
expect_equal(sheetname,names(wb))
expect_equal("<24 h",wb$sheet_names)
### test for names with >
wb <- createWorkbook()
sheetname <- ">24 h"
addWorksheet(wb, sheetname)
expect_equal(sheetname,names(wb))
expect_equal(">24 h",wb$sheet_names)
### test for names with "
wb <- createWorkbook()
sheetname <- 'test "A"'
addWorksheet(wb, sheetname)
expect_equal(sheetname,names(wb))
expect_equal("test "A"",wb$sheet_names)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.