From friedrich.leisch at stat.uni-muenchen.de  Thu Apr 23 17:44:45 2009
From: friedrich.leisch at stat.uni-muenchen.de (Friedrich Leisch)
Date: Thu, 23 Apr 2009 17:44:45 +0200
Subject: [Rd] RFC: Ability to suppress 'locale' from sessionInfo
In-Reply-To: <1CF05FF1-8327-4E3A-AC93-4991458FC154@stat.berkeley.edu>
References: <5c62e0070904211916w36310bfdsd720fae189cad25b@mail.gmail.com>
	<18926.50861.369595.3396@lxh5.stat.uni-muenchen.de>
	<49EECDEA.9020800@telenet.be>
	<18926.55876.329732.6352@lynne.math.ethz.ch>
	<1CF05FF1-8327-4E3A-AC93-4991458FC154@stat.berkeley.edu>
Message-ID: <18928.36077.615345.938907@lxh5.stat.uni-muenchen.de>

>>>>> On Wed, 22 Apr 2009 12:49:05 -0700,
>>>>> Kasper Daniel Hansen (KDH) wrote:

  > This is a better way, it does two things
  > a) enclose the itemize environment in a flushleft environment - this  
  > gives us much better line breaks for the verb.
  > b) does a replace of ";" with ";| \verb|" so that each "component" of  
  > the locale gets enclosed in its own \verb command, which allows latex  
  > to produce line breaks (since I am using gsub, I do gsub(";", ";| \\\ 
  > \verb", object$locale))

  > Below is a proposed utils:::toLatex.sessionInfo

Thanks, I have integrated it into the devel branch, and also modified
the print method to split the locale information:

R> sessionInfo()
R version 2.10.0 Under development (unstable) (2009-04-23 r48380) 
x86_64-unknown-linux-gnu 

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base


The default for the new locale argument is TRUE.

Best,
Fritz



[Rd] RFC: Ability to suppress 'locale' from sessionInfo
Friedrich Leisch