Skip to content

Conversation

JamesThompsonC
Copy link

Address #138

Error when length(class(current)) > 1L

Fix uses class(current)[1] to construct the error message.

use the first value returned by class() to construct error message
@TimTaylor
Copy link
Contributor

AFAICT - This is similar to #92. For consistency it may be worth matching the style of error messaging used in the commit that fixed it. E.g. using

sprintf("object of class '<%s>'", paste(class(current), collapse=", "))

instead of

sprintf("object of class '%s'", class(current)[1])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants