Re: [ESS] Re: [R] Strange characters in 2.1.0?

2005-06-08 Thread Martin Maechler
 PaCo == Patrick Connolly [EMAIL PROTECTED]
 on Wed, 8 Jun 2005 11:31:44 +1200 writes:

PaCo On Tue, 07-Jun-2005 at 04:10PM +0200, Martin Maechler wrote:
PaCo |  Dan == Dan Bolser [EMAIL PROTECTED]

PaCo |   ..
PaCo | 
PaCo | Dan I have gone back to 2.0.0 :)
PaCo | 
PaCo | Don't do that!
PaCo | You've lost tons of nice new features and gained quite an amount
PaCo | of old bugs by downgrading .. 

PaCo I get the non-generic quotes to show on the screen, but they won't
PaCo print with enscript.  I end up with a lot of wrapped lines and
PaCo nonsense where an unknown character should be.

Why is this diverted from R- to ESS-help? 
Printing with enscript is also a topic for printing a
transcript 'output.Rout' resulting e.g. from R CMD BATCH input.R output.Rout
I'm  committing a cross-posting  felony now, by posting back
to R-help {and please drop ESS-help from cc when further replying}

PaCo What do I need to do to get enscript to know about such characters?
PaCo There is an encoding parameter which defaults to latin1.  Should I
PaCo change that to something?

Yes, in principle.  latin1 aka ISO-latin-1 aka iso-8859-1
is (for western European languages) the predecessor standard of
the new unicode standard where we use the UTF-8 encoding
{and the above is (too) much simplified; also enter  locale
settings and standards}

However, my version of enscript does not seem to support UTF-8 (yet).
Nor does 'a2ps' an alternative to enscript which does pretty
print R source files.

So there are basically two options :

1) Get rid of unicode / utf-8
   by setting the locale of your computer / login 
   to use the old locales, e.g. en_US instead of en_US.utf-8.
   This will be more or less fine for Emacs and R --- though in
   in our {Redhat Enterprise} setup, the X11-fonts for
   non-utf-locales are quite crippled compared to those for
   utf-8 ones.

   However, as more and more other utilities are based on utf-8
   encoded files, you will see funny characters there
   if you are using locales like de_* or fr_*, at least,
   e.g. for man pages which are only in utf-8 for our Redhat OS setup.

2) Improve the printing tools by 
a) filtering *.utf-8 to latin-* 
b) printing the resulting latin-*

   For filtering, there are programs like  'recode' (was GNU
   recode, now Free recode) which are extremely flexible and
   'iconv' (less flexible but wider spread) that can translate
   utf-8 to and from all kind of encodings / character sets.

In the future, of course everything will work out of the box
when all the utilities in your computer will be aware of utf
encodings and will automatically send correct stuff to the
printer and display it correctly in all kind of viewers/editors... :-)   

Given my experiences during the last several months
(where I, e.g., also found that our oldish LaTeX setup 
  didn't yet accept  \usepackage[utf8]{inputencoding ),
If I were in New Zeeland and would not need accents or umlauts,
I'd probably stick with latin1  (and would make sure my X
server got proper non-utf8 fonts) for another year or so.

Martin

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [ESS] Re: [R] Strange characters in 2.1.0?

2005-06-08 Thread Patrick Connolly
On Wed, 08-Jun-2005 at 11:20AM +0200, Martin Maechler wrote:

|  PaCo == Patrick Connolly [EMAIL PROTECTED]
|  on Wed, 8 Jun 2005 11:31:44 +1200 writes:
| 
| PaCo On Tue, 07-Jun-2005 at 04:10PM +0200, Martin Maechler wrote:
| PaCo |  Dan == Dan Bolser [EMAIL PROTECTED]
| 
| PaCo |   ..
| PaCo | 
| PaCo | Dan I have gone back to 2.0.0 :)
| PaCo | 
| PaCo | Don't do that!
| PaCo | You've lost tons of nice new features and gained quite an amount
| PaCo | of old bugs by downgrading .. 
| 
| PaCo I get the non-generic quotes to show on the screen, but they won't
| PaCo print with enscript.  I end up with a lot of wrapped lines and
| PaCo nonsense where an unknown character should be.
| 
| Why is this diverted from R- to ESS-help? 

I erroneously thought that I could see the quotes only within Emacs
and not in a terminal window, so I thought it was half way there with
Emacs but not started in a terminal.  I'll check more carefully
henceforth.

[...]

| If I were in New Zeeland and would not need accents or umlauts,
| I'd probably stick with latin1  (and would make sure my X
| server got proper non-utf8 fonts) for another year or so.

Thanks for the clarification.


-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-07 Thread Martin Maechler
 Dan == Dan Bolser [EMAIL PROTECTED]
 on Mon, 6 Jun 2005 14:48:50 +0100 (BST) writes:

Dan On Mon, 6 Jun 2005, Douglas Bates wrote:
 On 6/6/05, Dan Bolser [EMAIL PROTECTED] wrote:
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
 8098*8099 0.05 8098.8099 0.1 8098 8099 1
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 hmm... they go away when I paste them in...
 
 Check the character set in use.  You probably are using a UTF-8
 encoding in an environment that does not support display of that
 character set.

Dan I feel it is something utf8-ish, I am using emacs-ess-5.2.3, which was
Dan working fine under R-2.0.0, but developed this problem under R-2.1.0

ess-5.2.3  is outdated for the purpose of well cooperating with
UTF-8 outputs from R 2.1.x
IIRC, ESS cooperates with   R with UTF encoding since about ESS 5.2.6.
but ESS-5.2.8 is current  { -- http://ESS.r-project.org/ )

  ..

Dan I have gone back to 2.0.0 :)

Don't do that!
You've lost tons of nice new features and gained quite an amount
of old bugs by downgrading .. 

Martin

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-07 Thread Dan Bolser
On Tue, 7 Jun 2005, Martin Maechler wrote:

 Dan == Dan Bolser [EMAIL PROTECTED]
 on Mon, 6 Jun 2005 14:48:50 +0100 (BST) writes:

Dan On Mon, 6 Jun 2005, Douglas Bates wrote:
 On 6/6/05, Dan Bolser [EMAIL PROTECTED] wrote:
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
 8098*8099 0.05 8098.8099 0.1 8098 8099 
 1
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 hmm... they go away when I paste them in...
 
 Check the character set in use.  You probably are using a UTF-8
 encoding in an environment that does not support display of that
 character set.

Dan I feel it is something utf8-ish, I am using emacs-ess-5.2.3, which was
Dan working fine under R-2.0.0, but developed this problem under R-2.1.0

ess-5.2.3  is outdated for the purpose of well cooperating with
UTF-8 outputs from R 2.1.x
IIRC, ESS cooperates with   R with UTF encoding since about ESS 5.2.6.
but ESS-5.2.8 is current  { -- http://ESS.r-project.org/ )

  ..

Dan I have gone back to 2.0.0 :)

Don't do that!
You've lost tons of nice new features and gained quite an amount
of old bugs by downgrading .. 

Ahhh ... thank you for making this clear to me now :)

Sadly I can't find R-2.1.x rpm on CRAN? 



Martin


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Strange characters in 2.1.0?

2005-06-06 Thread Dan Bolser

Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 

Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
8098*8099 0.05 8098.8099 0.1 8098 8099 1

Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 

hmm... they go away when I paste them in...

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-06 Thread Douglas Bates
On 6/6/05, Dan Bolser [EMAIL PROTECTED] wrote:
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
 8098*8099 0.05 8098.8099 0.1 8098 8099 1
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 hmm... they go away when I paste them in...

Check the character set in use.  You probably are using a UTF-8
encoding in an environment that does not support display of that
character set.

A cheap way of avoiding this particular problem is 

options(show.signif.stars = FALSE)

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-06 Thread Roger D. Peng

What is your operating system?

-roger

Dan Bolser wrote:
Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 


Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
8098*8099 0.05 8098.8099 0.1 8098 8099 1

Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 


hmm... they go away when I paste them in...

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-06 Thread Dan Bolser
On Mon, 6 Jun 2005, Roger D. Peng wrote:

What is your operating system?

Very sorry for lack of details...

I am RH 9, unix pc i386.




-roger

Dan Bolser wrote:
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 
 
 Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
 8098*8099 0.05 8098.8099 0.1 8098 8099 1
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 
 
 hmm... they go away when I paste them in...
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-06 Thread Dan Bolser
On Mon, 6 Jun 2005, Douglas Bates wrote:

On 6/6/05, Dan Bolser [EMAIL PROTECTED] wrote:
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
 8098*8099 0.05 8098.8099 0.1 8098 8099 1
 
 Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1
 
 hmm... they go away when I paste them in...

Check the character set in use.  You probably are using a UTF-8
encoding in an environment that does not support display of that
character set.

I feel it is something utf8-ish, I am using emacs-ess-5.2.3, which was
working fine under R-2.0.0, but developed this problem under R-2.1.0

A cheap way of avoiding this particular problem is 

options(show.signif.stars = FALSE)

The problem also affects directory/file names, so it breaks stuff in other
ways.

I have gone back to 2.0.0 :)





__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Strange characters in 2.1.0?

2005-06-06 Thread Roger D. Peng
It may be a problem with your terminal program.  Which one are 
you using?  Does it work if you try a different terminal program?


-roger

Dan Bolser wrote:

On Mon, 6 Jun 2005, Roger D. Peng wrote:



What is your operating system?



Very sorry for lack of details...

I am RH 9, unix pc i386.





-roger

Dan Bolser wrote:

Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 


Signif. codes:  0 8098***8099 0.001 8098**8099 0.01
8098*8099 0.05 8098.8099 0.1 8098 8099 1

Signif. codes:  0 *** 0.001 ** 0.01 * 0.05 . 0.1   1 


hmm... they go away when I paste them in...

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html







--
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html