Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not pass a data.frame to checkEqualsNumeric
checkEqualsNumeric() calls as.vector() on the 'current' and 'target' inputs. R-devel introduced an as.vector.data.frame() method, with the following entry in the NEWS file: * as.vector() gains a data.frame method which returns a simple named list, also obeying a long standing ‘FIXME’ to enable as.vector(<data.frame>, mode="list"). This will break code relying on 'as.vector(<data.frame>)' to return the unchanged data frame. R <= 4.1.x returns the data frame unchanged, but R-devel now returns a regular list with names corresponding to the data frame column names.
- Loading branch information