[R] all extended ASCII characters exist for R console output?

Henrik Bengtsson hb at biostat.ucsf.edu
Fri Nov 19 19:06:18 CET 2010


Just to get the message through that some already tried, e.g. on
Windows 7 with R (Rterm) you get:

> cat("\u2591","\u2592","\u2593")
¦ ¦ ¦>
>

See it didn't even cut'n'paste the same visual symbols as I see in
Rterm but I guess you cannot see that.  Make sense?  No?   Point is,
expect issues if you're running this outside your own system/on
different setup.  (This has nothing to do with R).

/H

On Fri, Nov 19, 2010 at 9:16 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Nov 19, 2010, at 11:45 AM, Jeff Newmiller wrote:
>
>> The glyphs displayed depend on the "terminal" you are using, which may be
>> operating-system dependent. Beware of assuming that other people will see
>> the same things you do in their consoles.
>>
>
> On a Mac this:
>
>> cat("\u2591","\u2592","\u2593")
> ░ ▒ ▓
>
> Prints three rectangles of varying size and "density". This appears somewhat
> similar to what I see im my browser except for the noticeable variation in
> size.
>
> --
> David
>
>> "Mark Heckmann" <mark.heckmann at gmx.de> wrote:
>>
>>> just found it out.
>>> to get an overview:
>>>
>>> for (i in 2590:3000)
>>>        cat(eval(parse(text=paste("\"\\u", i, "\"", sep=""))))
>>>
>>> Thanks,
>>> Mark
>>>
>>> Am 19.11.2010 um 17:24 schrieb Henrique Dallazuanna:
>>>
>>>> In the plot window:
>>>>
>>>> plot(1, main = "\u2591\u2592\u2593")
>>>>
>>>>
>>>> On Fri, Nov 19, 2010 at 2:02 PM, Mark Heckmann
>>>> <mark.heckmann at gmx.de> wrote:
>>>> Hi,
>>>>
>>>> can the R console print all extended ASCII characters?
>>>> I am especially interested in characters 176-178 from
>>>
>>> http://www.asciitable.com/
>>>>
>>>> bottom table.
>>>> As far as I know the character mapping in R is somewhat different
>>>> (octal).
>>>> So  as I am not familiar with these things I am not sure if it
>>>
>>> exists.
>>>>
>>>> TIA
>>>> Mark
>>>> ���������������������������������������
>>>> Mark Heckmann
>>>> Dipl. Wirt.-Ing. cand. Psych.
>>>> Celler Stra�e 27
>>>> 28205 Bremen
>>>> Blog: www.markheckmann.de
>>>> R-Blog: http://ryouready.wordpress.com
>>>>
>>>>
>>>>
>>>>
>>>>      [[alternative HTML version deleted]]
>>>>
>>>>
>>>> ______________________________________________
>>>> R-help at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide
>>>
>>> http://www.R-project.org/posting-guide.html
>>>>
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Henrique Dallazuanna
>>>> Curitiba-Paran�-Brasil
>>>> 25� 25' 40" S 49� 16' 22" O
>>>
>>> ���������������������������������������
>>> Mark Heckmann
>>> Dipl. Wirt.-Ing. cand. Psych.
>>> Celler Stra�e 27
>>> 28205 Bremen
>>> Blog: www.markheckmann.de
>>> R-Blog: http://ryouready.wordpress.com
>>>
>>>
>>>
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>> ---------------------------------------------------------------------------
>> Jeff Newmiller                        The     .....       .....  Go
>> Live...
>> DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live
>> Go...
>>                                     Live:   OO#.. Dead: OO#..  Playing
>> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
>> /Software/Embedded Controllers)               .OO#.       .OO#.
>>  rocks...1k
>>
>> ---------------------------------------------------------------------------
>> Sent from my phone. Please excuse my brevity.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> David Winsemius, MD
> West Hartford, CT
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list