Bug 15656 - presence of Right-to-Left Font alters order of columns when displaying a data.frame
Summary: presence of Right-to-Left Font alters order of columns when displaying a data...
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 3.0.2
Hardware: x86_64/x64/amd64 (64-bit) OS X Mavericks
: P5 enhancement
Assignee: Simon Urbanek
URL:
Depends on:
Blocks:
 
Reported: 2014-02-04 22:07 UTC by Ricardo Saporta
Modified: 2014-02-04 22:10 UTC (History)
0 users

See Also:


Attachments
Screenshot of RGUI right-to-left font issue (69.54 KB, image/png)
2014-02-04 22:07 UTC, Ricardo Saporta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Saporta 2014-02-04 22:07:53 UTC
Created attachment 1558 [details]
Screenshot of RGUI right-to-left font issue

This issue does NOT occur in Terminal.  Only in RGui

I have a data.frame where the 'NAME' column contains a right-to-left font.  When displaying the data.frame, those rows. 

If I copy the output and paste into a text editor, it paste in the correct order. 

I took a screen shot of the RGUI and attaching in case the example below does not reproduce. 

# --------------------- #
# EXAMPLE               #
# --------------------- #
TEST <- structure(list(NAME = c("ВА", "ВА", "ВА", "ВА", "ВА","ВА", "ВА", "كلث", "كلث", "كلث"), Id = c("qqqq","tttt", "ssss", "xxxx", "tttt", "vvvv", "aaaa", "cccc", "hhhh","bbbb"), Value = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L)), .Names = c("NAME","Id", "Value"), row.names = c(744409L, 744410L, 744411L, 744412L,744413L, 744414L, 744415L, 744426L, 744427L, 744428L), class = "data.frame")

print(TEST)

# --------------------- #
Comment 1 Ricardo Saporta 2014-02-04 22:10:14 UTC
* (Apologies, I drifted off in my typing the description)

When printing the data.frame, the offending rows appear with the columns in reverse order.