[Rd] `c` with lists with "bytes" names encoding
brodie.gaslam at yahoo.com
Sat Aug 5 02:36:09 CEST 2017
I'm not entirely sure this even qualifies as a bug given how unusual a case it is:
> x <- list('a')
> name.x <- '\x81'
> Encoding(name.x) <- 'bytes'
> names(x) <- name.x
$`\\x81` "a"> c(x)Error: translating strings with "bytes" encoding is not allowed
Error in unlist(x) :
translating strings with "bytes" encoding is not allowed> letters[name.x]
Error: translating strings with "bytes" encoding is not allowed
Presumably the error is coming from `translateCharsUTF8` or similar. I imagine the "fix" would be to not translate byte encoded names, or not allow them.
This is not really a problem for me as I can easily work around it. Just an fyi in case it is of interest to you.
R version 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
attached base packages:
 stats graphics grDevices utils datasets methods base
other attached packages:
 diffobj_0.1.6.9002 unitizer_22.214.171.12403
loaded via a namespace (and not attached):
 vetr_0.1.0.9000 compiler_3.4.0 tools_3.4.0 withr_1.0.2
 crayon_1.3.2 memoise_1.1.0 digest_0.6.12 devtools_1.12.0
[[alternative HTML version deleted]]
More information about the R-devel