Skip to content

TST, ENH: tests should set stringsAsFactors? #13

Description

@drammock

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:

  1. explicitly set options(stringsAsFactors=FALSE) (or TRUE) at the start of the test file, and restore its original value at end.

  2. when comparing columns, use as.factor or as.character, as appropriate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions