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
Are you sure the above results are correct? The second and third results should always be equivalent, which is what I see with the current CRAN release.
library(cpp11)
cpp_eval('cpp11::r_string(NA_STRING)')
#> [1] "NA"
cpp_eval('cpp11::writable::strings(NA_STRING)')
#> [1] NA
cpp_eval('cpp11::writable::strings({NA_STRING})')
#> [1] NA
cpp_eval('cpp11::writable::strings({NA_STRING, "text"})')
#> [1] "NA" "text"
As of e2e04cc all four of these examples should now be consistent.
library(cpp11)
cpp_eval('cpp11::r_string(NA_STRING)')
#> [1] NA
cpp_eval('cpp11::writable::strings(NA_STRING)')
#> [1] NA
cpp_eval('cpp11::writable::strings({NA_STRING})')
#> [1] NA
cpp_eval('cpp11::writable::strings({NA_STRING, "text"})')
#> [1] NA "text"
Uh oh!
There was an error while loading. Please reload this page.
What correct way to return
NA_character
?The text was updated successfully, but these errors were encountered: