-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Character encoding must be UTF-8, Latin-1 or bytes #6
Comments
Sorry you ran into trouble. And thank you for taking the time to file an issue. My theory is that this is a bug with If I run your code in an variable value
1 privée 1
2 publique -1
3 privée 2
4 publique -2
5 privée 3
6 publique -3
7 privée 4
8 publique -4
9 privée 5
10 publique -5
11 privée 6
12 publique -6
13 privée 7
14 publique -7
15 privée 8
16 publique -8
17 privée 9
18 publique -9
19 privée 10
20 publique -10 However if I run the exact same code was a reprex::reprex({
library("cdata")
options(stringsAsFactors = FALSE)
data = data.frame(
privée = 1:10,
publique = -(1:10)
)
ct = data.frame(
variable = c("privée", "publique"),
value = c("privée", "publique")
)
rowrecs_to_blocks(data, ct)
packageVersion("cdata")
sessionInfo()
}) library("cdata")
options(stringsAsFactors = FALSE)
data = data.frame(
privée = 1:10,
publique = -(1:10)
)
ct = data.frame(
variable = c("privée", "publique"),
value = c("privée", "publique")
)
rowrecs_to_blocks(data, ct)
#> Error in (function (..., na.last = TRUE, decreasing = FALSE, method = c("auto", : Character encoding must be UTF-8, Latin-1 or bytes
packageVersion("cdata")
#> [1] '1.0.8'
sessionInfo()
#> R version 3.5.0 (2018-04-23)
#> Platform: x86_64-apple-darwin15.6.0 (64-bit)
#> Running under: macOS High Sierra 10.13.6
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] cdata_1.0.8
#>
#> loaded via a namespace (and not attached):
#> [1] compiler_3.5.0 wrapr_1.8.5 magrittr_1.5 tools_3.5.0
#> [5] htmltools_0.3.6 yaml_2.2.0 Rcpp_1.0.0 stringi_1.3.1
#> [9] rmarkdown_1.11 highr_0.7 knitr_1.21 stringr_1.4.0
#> [13] xfun_0.4 digest_0.6.18 evaluate_0.13 Created on 2019-03-25 by the reprex package (v0.2.1) |
I am moving this issue over to I have a smaller example here: ct = data.frame(
variable = c("privée", "publique"),
value = c("privée", "publique"),
stringsAsFactors = FALSE
)
wrapr::has_no_dup_rows(ct)
#> Error in (function (..., na.last = TRUE, decreasing = FALSE, method = c("auto", : Character encoding must be UTF-8, Latin-1 or bytes Created on 2019-03-25 by the reprex package (v0.2.1) |
I have filed the issue with
|
Fixed our issue with WinVector/wrapr@53ed02e and filed underlying issue as yihui/knitr#1690 . So the work-around for now is to use |
thank you very much |
Hi
I get this error when running the following program with valid UTF8 encoding
Error in (function (..., na.last = TRUE, decreasing = FALSE, method = c("auto", :
Character encoding must be UTF-8, Latin-1 or bytes
removing the accent is a workaround
this is on osx
thanks
The text was updated successfully, but these errors were encountered: