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

Friedrich Leisch friedrich.leisch at stat.uni-muenchen.de
Thu Apr 23 17:44:45 CEST 2009


>>>>> 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



More information about the R-devel mailing list