Sys.setenv("OMP_THREAD_LIMIT" = 1) test_that("html tags work", { collocation_test <- data.frame(ID = c("source",1:6), Notes = c("This is a
test.", "this is a test", "this is a test", "is a test", "is a test", "a test", "a test")) frequency_test <- collocation_frequency(collocation_test, source_row=1, text_column = "Notes", collocate_length=2) freq_plot <- collocation_plot(frequency_test) test_highlight <- highlighted_text(freq_plot) answer <- "
0
6
This 
is 

test. 
" expect_identical(test_highlight, answer) }) test_that("dash check", { collocation_test <- data.frame(ID = c("source",1:6), Notes = c("This - is a - test.", "this is a test", "this is a test", "is a test", "is a test", "a test", "a test")) frequency_test <- collocation_frequency(collocation_test, source_row=1, text_column = "Notes", collocate_length=2) freq_plot <- collocation_plot(frequency_test) test_highlight <- highlighted_text(freq_plot) answer <- "
0
6
This 
is 
test. 
" expect_identical(test_highlight, answer) })