Dear all I am writing an Sweave document and have encountered formatting issues with the "locale" part of toLatex(sessionInfo()). The fact that there is no spaces between the various "locale" variables means that LaTeX cannot easily find an appropriate place to break the lines, and some will get printed off screen. Below is the text output, and this .pdf document [1] shows the (faulty) tex result. Could anyone suggest how to get around this issue? Thank you Liviu [1] http://s000.tinyupload.com/index.php?file_id=06259544336960829228> sessionInfo()R version 2.9.1 (2009-06-26) x86_64-pc-linux-gnu locale: LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] grDevices utils datasets stats graphics methods base other attached packages: [1] fortunes_1.3-6 hints_1.0.1-1 boot_1.2-38 relimp_1.0-1 xtable_1.5-5 [6] Hmisc_3.6-1 loaded via a namespace (and not attached): [1] cluster_1.12.0 grid_2.9.1 lattice_0.17-25 tcltk_2.9.1 -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Dear Liviu, On Wed, Aug 26, 2009 at 7:35 AM, Liviu Andronic<landronimirc at gmail.com> wrote:> Dear all > I am writing an Sweave document and have encountered formatting issues > with the "locale" part of toLatex(sessionInfo()). The fact that there > is no spaces between the various "locale" variables means that LaTeX > cannot easily find an appropriate place to break the lines, and some > will get printed off screen. > Below is the text output, and this .pdf document [1] shows the > (faulty) tex result. Could anyone suggest how to get around this > issue? > Thank you > LiviuThere was a closely related discussion last April: https://stat.ethz.ch/pipermail/r-devel/2009-April/053094.html and IIRC this was fixed for R version 2.10. Hope this helps, Jay -- *************************************************** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX VoIP: gjkerns at ekiga.net E-mail: gkerns at ysu.edu http://www.cc.ysu.edu/~gjkerns/
On 8/26/09, Frank E Harrell Jr <f.harrell at vanderbilt.edu> wrote:> G. Jay Kerns wrote: > > There was a closely related discussion last April: > > > > > https://stat.ethz.ch/pipermail/r-devel/2009-April/053094.html > > > > and IIRC this was fixed for R version 2.10. > > > If you still have trouble just do > > s <- toLatex(sessionInfo()) > cat(s[-grep('Locale',s)], sep='\n') >This works great. Thank you both for the info. Liviu