Skip to content
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 causes order to error-out #9

Closed
JohnMount opened this issue Mar 25, 2019 · 2 comments
Closed

Character encoding causes order to error-out #9

JohnMount opened this issue Mar 25, 2019 · 2 comments
Labels

Comments

@JohnMount
Copy link
Member

From: WinVector/cdata#6 .

Only happens in knitr or reprex contexts:

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)

@JohnMount
Copy link
Member Author

JohnMount commented Mar 25, 2019

Found the issue radix sort method plus knitr. The following Rmarkdown shows the problem.

---
title: "Runs in console, but won't knit"
output: html_document
---

```{r, error=TRUE}
ct = data.frame(
  variable = c("privée", "publique"),
  value = c("privée", "publique"),
  stringsAsFactors = FALSE
)

do.call(order, as.list(ct))

do.call(order, c(as.list(ct), list(method = "radix")))
```

@JohnMount
Copy link
Member Author

Fixed our issue with 53ed02e and filed underlying issue as yihui/knitr#1690 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant