mne-r
mne-r copied to clipboard
TST, ENH: tests should set stringsAsFactors?
It is common for individual researchers to set stringsAsFactors=FALSE
in their .Rprofile
, so when running tests that expect dataframe columns to be factors, it would be better to do one of the following:
-
explicitly set
options(stringsAsFactors=FALSE)
(orTRUE
) at the start of the test file, and restore its original value at end. -
when comparing columns, use
as.factor
oras.character
, as appropriate