Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect superscript formatting for scientific notation #90
The pretty-printing of superscripts is not correct for numbers printed in scientific notation. For example, the number 1.23E4 is printed as 1.23e^4 which reads as 1.23 * e^4. It really should be 1.23 x 10^4, (which actually occupies more characters than the default print method) but at the very least the "e" should be "E" so as not to be confused with the natural exponent.
There are at least two features of the R output that make it clear what is happening:
Another feature of base R is that it always provides at least two digits.
I'm using the RStudio Server web client (Chrome, Mac, tibble 1.4.2) with the default UI scheme.
In addition to the annoying spacing as above that results from superscripting in the fixed width font, I get double superscripting in two-digit exponents - see attached screen clip.
So (IMHO) we get decreased readability compared to the lowest common denominator R formatting, with no saving in screen real estate, and no way to configure formatting consistent with the rest of the numbers printed in the console.
Please record one more vote for a backward compatibility option!