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
This is an issue that emerges when a certain, admittedly unusual, combination of valid characters is printed on the console via fs::path(). The shortest combination I found is the following (with the relevant error):
fs::path("śl")
Error in base::nchar(x, type, allowNA, keepNA) :
invalid multibyte string, element 1
The issue does not seem to be related to the ś itself, as the following works nicely:
fs::path("ś")
Obvious solutions such as the following all return the same error:
Error in base::nchar(x, type, allowNA, keepNA) :
invalid multibyte string, element 1
If you look at the reprex, all seemingly works fine. But if I run the same code on the console, then I get the above error.
I include a reprex for reference, as well as a screenshot, since the issue is not fully visible via reprex.
In the real world, this issue emerges as I print fs::path() as a form to show advancement in a script that processes data related to a bunch of cities, including the Polish city of Przemyśl.
Of course there are ways around it, but since it broke my scripts, I still decided to report this. Tested with both the current development version (see reprex below) and version currently on CRAN (1.5.2)
This is an issue that emerges when a certain, admittedly unusual, combination of valid characters is printed on the console via
fs::path()
. The shortest combination I found is the following (with the relevant error):The issue does not seem to be related to the
ś
itself, as the following works nicely:Obvious solutions such as the following all return the same error:
If you look at the reprex, all seemingly works fine. But if I run the same code on the console, then I get the above error.
I include a reprex for reference, as well as a screenshot, since the issue is not fully visible via reprex.
In the real world, this issue emerges as I print
fs::path()
as a form to show advancement in a script that processes data related to a bunch of cities, including the Polish city of Przemyśl.Of course there are ways around it, but since it broke my scripts, I still decided to report this. Tested with both the current development version (see reprex below) and version currently on CRAN (1.5.2)
Created on 2022-05-31 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: