tidyverse / reprex

Render bits of R code for sharing, e.g., on GitHub or StackOverflow.

Home Page:https://reprex.tidyverse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reprex() writes to clipboard with a wrong encoding on Windows with R-devel

yutannihilation opened this issue · comments

Sorry, I know this is a problem on clipr's side, but let me file this here just in case I fail to get this fixed before the release of R 4.2.0....

Code:

reprex::reprex({
""
})

On viewer pane of RStudio:

image

In my clipboard:

``` r
"縺・
#> [1] "縺・
```

<sup>Created on 2022-01-31 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1)</sup>

Do we think the clipr update means reprex will be OK once r-devel becomes r-release? That's my interpretation of events. I.e. this is safe to close?

Yes! Sorry I forgot to close this.