Giter VIP home page Giter VIP logo

Comments (16)

randy3k avatar randy3k commented on May 19, 2024 1

4e29747 should fix it.

from radian.

randy3k avatar randy3k commented on May 19, 2024

For the record, it works fine on macOS.

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

Data.table looks to be affected too:

data.table(a = 1:2, x = c("a", "b"))
#>  ☻ÿþa♥ÿþ ☻ÿþx♥ÿþ
#>☻ÿþ1:♥ÿþ ☻ÿþ1♥ÿþ ☻ÿþa♥ÿþ
#>☻ÿþ2:♥ÿþ ☻ÿþ2♥ÿþ ☻ÿþb♥ÿþ

Not tibbles though:

tibble(a = 1:2, x = c("a", "b"))
#> # A tibble: 2 x 2
#>       a x
#>   <int> <chr>
#>  1     1 a
#>  2     2 b

from radian.

randy3k avatar randy3k commented on May 19, 2024

It works fine both on Cmder and Command Prompt.

screen shot 2018-04-26 at 5 16 27 pm

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

It looks like your R version is 3.4.3. Here's what I'm getting with 3.5:
capture2

capture

from radian.

randy3k avatar randy3k commented on May 19, 2024

I assume that it works as expected in regular R, right?
TBH, I have no clues why it happens.

PS: I just installed Conemu, it also works as usual.

from radian.

randy3k avatar randy3k commented on May 19, 2024

Oh, yeah. I can reproduce it with R 3.5.

r$> "hello"
[1] "☻ÿþhello♥ÿþ"

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

Yeah regular R works fine--I'm using cmder as well FWIW.

I dug around a bit in the R repo and didn't see any major changes to printing, nor was there anything in the release notes. Very odd.

from radian.

randy3k avatar randy3k commented on May 19, 2024

More odd,

r$> list(a = 1, b = 2)
$`☻ÿþa♥ÿþ`
[1] 1

$b
[1] 2

from radian.

randy3k avatar randy3k commented on May 19, 2024

for reason which i don't understand, "a" is printed as "\x02\xff\xfea\x03\xff\xfe" with the extra escaped characters.

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

That is just odd...what has changed do you think?

from radian.

randy3k avatar randy3k commented on May 19, 2024

I notice that rstudio has code related to these escaped characters.

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

The relevant commit from Joe Cheng, if you didn't see that already. Looks like R output needs to be homogenized to utf-8.

Still doesn't really explain why 3.5 should be different, but there you are.

from radian.

hongooi73 avatar hongooi73 commented on May 19, 2024

I don't know if this helps, but 0xFEFF is the UTF-16 encoding of the byte order mark.

from radian.

beansrowning avatar beansrowning commented on May 19, 2024

@randy3k Confirmed working on Command Prompt and Cmder with the most recent version. Nice work!

from radian.

randy3k avatar randy3k commented on May 19, 2024

But I still don’t understand what happens to R 3.5 is causing this.

from radian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.