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
expect_error(.Call(wrap__char_scalar, c("hello", "world")), "not a string object") # why this error message and not "Input must be of length 1"?
The error is appropriate, but the error message is confusing. A better error would be "Input must be of length 1", as is used for the other types, see e.g. here:
If a Rust function expecting a single string is handed a string vector from R, then it raises an error stating "not a string object". See here:
extendr/tests/extendrtests/tests/testthat/test-type-conversion.R
Line 29 in 9752c7f
The error is appropriate, but the error message is confusing. A better error would be "Input must be of length 1", as is used for the other types, see e.g. here:
extendr/tests/extendrtests/tests/testthat/test-type-conversion.R
Line 7 in 9752c7f
The text was updated successfully, but these errors were encountered: