You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks to me like this is caused by the way the error message is called line 58 of sxp.R.
opts<- c("character", "altrep", "environment", "call", "bytecode")
if (any(!expand%in%opts)) {
abort("`expand` must contain only values from ", paste("'", opts, "'", collapse=","))
}
This would work with message() where the first argument is ..., but rlang::abort() expects the first argument to be the message.
After I typed this out, I thought I might as well just fork the repo and amend the error message. I have done this. I will link to this issue in the PR.
I have not added a test as it seemed like overkill but when I run the same code it now produces:
Here is a simple example, calling
lobstr::sxp()
on a numeric vector:Output:
It looks to me like this is caused by the way the error message is called line 58 of
sxp.R
.This would work with
message()
where the first argument is...
, butrlang::abort()
expects the first argument to be the message.After I typed this out, I thought I might as well just fork the repo and amend the error message. I have done this. I will link to this issue in the PR.
I have not added a test as it seemed like overkill but when I run the same code it now produces:
This is my first time contributing to a package so I hope it was helpful - if not let me know how it could've been more useful.
The text was updated successfully, but these errors were encountered: