From friedrich.leisch at stat.uni-muenchen.de  Wed Apr 22 09:26:37 2009
From: friedrich.leisch at stat.uni-muenchen.de (Friedrich Leisch)
Date: Wed, 22 Apr 2009 09:26:37 +0200
Subject: [Rd] RFC: Ability to suppress 'locale' from sessionInfo
In-Reply-To: <5c62e0070904211916w36310bfdsd720fae189cad25b@mail.gmail.com>
References: <5c62e0070904211916w36310bfdsd720fae189cad25b@mail.gmail.com>
Message-ID: <18926.50861.369595.3396@lxh5.stat.uni-muenchen.de>

>>>>> On Tue, 21 Apr 2009 21:16:59 -0500,
>>>>> Kevin W (KW) wrote:

  > The printing of the locale information from sessionInfo is not very tidy.
  > Using toLatex(sessionInfo) pretty much guarantees "badness" from breaking
  > the margin boundary (though my version of TeX no longer reports such
  > errors).  A random example is here:
  > http://cran.r-project.org/web/packages/Matrix/vignettes/Design-issues.pdf

  > I find the locale information unnecessary and right now I hack this with
  > si = sessionInfo()
  > si$locale = "US"
  > toLatex(si)

  > I would like to be able to do something a bit cleaner, for example
  > sessionInfo(locale=FALSE)

  > For what it's worth, I don't think that early versions of sessionInfo
  > printed information about the locale.

It went in on 2006-05-26, so it's bben there for some time now.
  

  > Discussion welcome.

I agree that it doesn't look nice in latex documents, but it is very
handy in bug reports.

Are there any objections if we add a locale argument to the toLatex()
method and let that default to FALSE?

Best,
Fritz



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