Skip to content

Calling assessment() on a permutations gives a confusing error #321

@mikemahoney218

Description

@mikemahoney218

Related: I am now seeing that the error thrown when calling assessment() on a permutations object is not correct:

library(rsample)

p <- permutations(mtcars, cyl)

assessment(p$splits[[1]])
#> Error in `as.data.frame()`:
#> ! There is no assessment data set for an `rsplit` object with class `rsplit`.

It should read something like:

#> ! There is no assessment data set for an rsplit object from a permutations set.

Or something along those lines...

Originally posted by @mattwarkentin in #319 (comment)

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