From m@echler @ending from @t@t@m@th@ethz@ch  Mon Jul 30 09:32:16 2018
From: m@echler @ending from @t@t@m@th@ethz@ch (Martin Maechler)
Date: Mon, 30 Jul 2018 09:32:16 +0200
Subject: [Rd] odd behavior of names
In-Reply-To: <CAF8bMcZYoaN02TpYh2O=1zYWyjynHti2gga1O0pfdkrgKAojFg@mail.gmail.com>
References: <CAP01uR=K40ZD9M=wMdtAh77pyOd-4B39dcDzhE4Jdeh4XPDCrg@mail.gmail.com>
 <CCAD7D06-AC31-483A-90C9-756C0F402247@comcast.net>
 <CAF8bMcZYoaN02TpYh2O=1zYWyjynHti2gga1O0pfdkrgKAojFg@mail.gmail.com>
Message-ID: <23390.48896.646829.975074@stat.math.ethz.ch>

>>>>> 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

[..............................]



[Rd] odd behavior of names
Martin Maechler