From tom@@@k@liber@ @ending from gm@il@com  Fri Aug 17 17:16:12 2018
From: tom@@@k@liber@ @ending from gm@il@com (Tomas Kalibera)
Date: Fri, 17 Aug 2018 17:16:12 +0200
Subject: [Rd] odd behavior of names
In-Reply-To: <23390.48896.646829.975074@stat.math.ethz.ch>
References: <CAP01uR=K40ZD9M=wMdtAh77pyOd-4B39dcDzhE4Jdeh4XPDCrg@mail.gmail.com>
 <CCAD7D06-AC31-483A-90C9-756C0F402247@comcast.net>
 <CAF8bMcZYoaN02TpYh2O=1zYWyjynHti2gga1O0pfdkrgKAojFg@mail.gmail.com>
 <23390.48896.646829.975074@stat.math.ethz.ch>
Message-ID: <31b37ff2-261d-488b-1a54-776960a866c8@gmail.com>


Both bugs should now be fixed in R-devel. The first one was causing the 
difference between the first and the following element. The second one 
was causing the printing of unnecessary backticks, inconsistently with 
Unix systems.

Best
Tomas

On 07/30/2018 09:32 AM, Martin Maechler wrote:
>>>>>> William Dunlap via R-devel
>>>>>>      on Sun, 29 Jul 2018 10:06:40 -0700 writes:
>      > Bugzilla issue 16101 describes another
>      > first-list-name-printed-differently oddity with
>      > the Windows GUI version of R:
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Indeed:
> 	1) "first-list-name-printed" [i.e "names" only in that
> 	   			     context of printing]
> 	2) Windows GUI version of R only
> 	   (not 'Rterm', i.e., not in ESS (emacs speaks
> 	   statistics), nor in Rstudio on Windows
>
> Kevin Ushey has reported this last week in an official (and
> perfect) bug report to R's bugzilla bug reporting site:
>
>   https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17447
>
>              Bug ID: 17447
>             Summary: list() prints first variable name in backticks
> 	   ....
>           Component: Windows GUI / Window specific
>            Reporter: kevinushey ..  gmail ..
>
> His minimal REPREX was even much simpler:
>
>     > list(a = 1, b = 2)
>      $`a`
>      [1] 1
>
>      $b
>      [1] 2
>
>
> Thank you, Bill, for the nice extra example.
>
> Martin Maechler
> ETH Zurich and R Core Team

>
>
>>> a <- "One is \u043E\u0434\u0438\u043D\nTwo is \u0434\u0432\u0430\n"
>>> Encoding(a) # expect "UTF-8"
>> [1] "UTF-8"
>>> sapply(strsplit(a, "\n")[[1]], charToRaw)[c(1,1,2)]
>> $`One is ????`
>>   [1] 4f 6e 65 20 69 73 20 d0 be d0 b4 d0
>> [13] b8 d0 bd
>>
>> $`One is <U+043E><U+0434><U+0438><U+043D>`
>>   [1] 4f 6e 65 20 69 73 20 d0 be d0 b4 d0
>> [13] b8 d0 bd
>>
>> $`Two is <U+0434><U+0432><U+0430>`
>>   [1] 54 77 6f 20 69 73 20 d0 b4 d0 b2 d0
>> [13] b0
>>
>>> names(.Last.value)
>> [1] "One is ????" "One is ????"
>> [3] "Two is ???"
>>
>>
>>
>> Bill Dunlap
>> TIBCO Software
>> wdunlap tibco.com
> [..............................]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] odd behavior of names
Tomas Kalibera