[R-SIG-Mac] R.app stange behavior?

Philippe Grosjean phgrosjean at sciviews.org
Sat Dec 29 13:17:26 CET 2007


Hello,

I have a couple of questions regarding the way R.app works:

1) R.app forces \n at the end of output:

 > cat("some text")
some text
 >

While on any other R console I have tested (including R in a terminal on 
a Mac), it is not the case:
 > cat("some text")
some text>

This is a problem for two reasons: (1) Mac users may forgot to add \n 
when using cat() and it would produce weird results elsewhere, and (2) 
it is sometimes useful to be able to write something before the prompt, 
or to write text without \n (see progress() in svMisc package, for an 
example of use)


2) R.app does not interpret \a and \b. \a should output a sound ('bip') 
and is used in alarm() function that does not work in R.app, and \b is 
backspace and is supposed to erase previous character. Consequently:

 > cat("abc\bd\n")
abcd
 >

which is wrong, or at least, different from the behavior on all other R 
consoles I have used which gives:

 > cat("abc\bd\n")
abd
 >


3) Despite reading Mac-FAQ, I cannot figure out how to print French 
messages correctly. I got something like:

 > nonexistingvar
Erreur : objet "nonexistingvar" non trouv'e
 >

This is the same on the terminal. Under Windows (RGui), I got:

 > nonexistingvar
Erreur : objet "nonexistingvar" non trouvé
 >

How can I fix this? (I am the maintainer of R French translation, and it 
uses 'charset=ISO-8859-1').


I don't know if this should be considered as bugs, or if I miss some 
point here.

Philippe Grosjean





-- 
..............................................<°}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..............................................................



More information about the R-SIG-Mac mailing list