MicheleNuijten / statcheck

A spellchecker for statistics
174 stars 28 forks source link

reconsider ignoring minus signs followed by space #73

Open MicheleNuijten opened 1 year ago

MicheleNuijten commented 1 year ago

see this test:

weird encoding in minus sign followed by space

test_that("t-values with a weird minus sign and a space do not result in errors", { txt1 <- " t(553) = − 4.46, p < .0001" # this is an em dash or something

expect_output(statcheck(txt1, messages = FALSE), "did not find any results")

})

not sure why I decided why these cases should be ignored. seems reasonable to include them.