[Distr-commits] r591 - branches/distr-2.2/pkg/SweaveListingUtils/inst/doc pkg/SweaveListingUtils/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Sep 28 13:43:38 CEST 2009


Author: ruckdeschel
Date: 2009-09-28 13:43:37 +0200 (Mon, 28 Sep 2009)
New Revision: 591

Modified:
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/AllClass.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/BinomParam.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/altPrep.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/locChange.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble2.tex
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/reqdistr.tex
   pkg/SweaveListingUtils/inst/doc/AllClass.tex
   pkg/SweaveListingUtils/inst/doc/BinomParam.tex
   pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
   pkg/SweaveListingUtils/inst/doc/altPrep.tex
   pkg/SweaveListingUtils/inst/doc/locChange.tex
   pkg/SweaveListingUtils/inst/doc/preamble.tex
   pkg/SweaveListingUtils/inst/doc/preamble2.tex
   pkg/SweaveListingUtils/inst/doc/reqdistr.tex
Log:
SweaveListingUtils: stirred up by a corresponding mail by Rasmus Pank Roulund,
I dug deeper into the problem why, with option results=tex,
Sweave was swallowing beginning/ending newlines and
found option "strip.white=FALSE" -> inserte this option at various places

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/AllClass.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/AllClass.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/AllClass.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<AllClass, results=tex, echo=FALSE>>=
+<<AllClass, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","R","AllClasses.R","distr",
                      "## Class: BinomParameter", "#-")
 @

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/BinomParam.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/BinomParam.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/BinomParam.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,3 +1,3 @@
-<<BinomParam, results=tex, echo=FALSE>>=
+<<BinomParam, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","man","BinomParameter-class.Rd","distr")
 @

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-09-28 11:43:37 UTC (rev 591)
@@ -75,7 +75,7 @@
 %\usepackage{Sweave}
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 SweaveListingoptions(intermediate = FALSE)
 SweaveListingPreparations()
@@ -266,7 +266,7 @@
 %------------
 \lstinputlisting[style=TeXstyle]{reqdistr.tex}
 
-<<Prepa, echo=FALSE, results=tex>>=
+<<Prepa, echo=FALSE, results=tex, strip.white=FALSE>>=
 require(distr)
 @
 
@@ -439,7 +439,7 @@
 % -------------------------------------------------------------------------------
 which returns
 
-<<AllClass1, echo=FALSE, results=tex>>=
+<<AllClass1, echo=FALSE, results=tex, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","R","AllClasses.R","distr",
                      "## Class: BinomParameter", "#-")
 @
@@ -458,7 +458,7 @@
 \lstinputlisting[style=TeXstyle]{BinomParam.tex}
 
 giving 
-<<BinomParam, results=tex, echo=FALSE>>=
+<<BinomParam, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","man","BinomParameter-class.Rd","distr")
 @
 

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/altPrep.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/altPrep.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/altPrep.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 ### just want to modify 1 entry of option Rset
 ### so first copy the default settings:

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/locChange.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/locChange.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/locChange.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,3 +1,3 @@
-<<changeStyle, results=tex, echo=FALSE>>=
+<<changeStyle, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstsetR(Rset = list("basicstyle" = "{\\tiny}"))
 @

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -8,11 +8,11 @@
 % -------------------------------------------------------------------------------
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 SweaveListingPreparations()
 ## setToBeDefinedPkgs(....) line just necessary for the example;
-##    may be skipped in general  
+##    may be skipped in general
 ##    you may also wish to pass arguments to SweaveListingPreparations()
 ##    see ?SweaveListingPreparations
 setToBeDefinedPkgs(pkgs = c("SweaveListingUtils","distr"),

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble2.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble2.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/preamble2.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -4,23 +4,23 @@
 % -------------------------------------------------------------------------------
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
- ## we are only appending new options so use 
+ ## we are only appending new options so use
  ## c(getSweaveListingOption(.),<newoptions>)
 SweaveListingPreparations(#
         Rin = c(getSweaveListingOption("Rin"),
-                frame = "trBL", 
+                frame = "trBL",
                 backgroundcolor = "\\color{gray90}",
-                numbers = "left", 
+                numbers = "left",
                 numberstyle = "\\tiny",
                 stepnumber = "1",
                 numbersep = "7pt"),
         Rout = c(getSweaveListingOption("Rout"),
-                 frame = "trBL", 
-                 frameround = "fttt", 
+                 frame = "trBL",
+                 frameround = "fttt",
                  backgroundcolor = "\\color{gray95}",
-                 numbers = "left", 
+                 numbers = "left",
                  numberstyle = "\\tiny",
                  stepnumber="3",
                  numbersep = "5pt"))

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/reqdistr.tex
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/reqdistr.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/reqdistr.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<Prepa, echo=FALSE, results=tex>>=
+<<Prepa, echo=FALSE, results=tex, strip.white=FALSE>>=
 require(distr)
 ## preparation: load package distr and register its keywords
 @

Modified: pkg/SweaveListingUtils/inst/doc/AllClass.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/AllClass.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/AllClass.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<AllClass, results=tex, echo=FALSE>>=
+<<AllClass, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","R","AllClasses.R","distr",
                      "## Class: BinomParameter", "#-")
 @

Modified: pkg/SweaveListingUtils/inst/doc/BinomParam.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/BinomParam.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/BinomParam.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,3 +1,3 @@
-<<BinomParam, results=tex, echo=FALSE>>=
+<<BinomParam, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","man","BinomParameter-class.Rd","distr")
 @

Modified: pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
===================================================================
--- pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-09-28 11:43:37 UTC (rev 591)
@@ -75,7 +75,7 @@
 %\usepackage{Sweave}
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 SweaveListingoptions(intermediate = FALSE)
 SweaveListingPreparations()
@@ -266,7 +266,7 @@
 %------------
 \lstinputlisting[style=TeXstyle]{reqdistr.tex}
 
-<<Prepa, echo=FALSE, results=tex>>=
+<<Prepa, echo=FALSE, results=tex, strip.white=FALSE>>=
 require(distr)
 @
 
@@ -439,7 +439,7 @@
 % -------------------------------------------------------------------------------
 which returns
 
-<<AllClass1, echo=FALSE, results=tex>>=
+<<AllClass1, echo=FALSE, results=tex, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","R","AllClasses.R","distr",
                      "## Class: BinomParameter", "#-")
 @
@@ -458,7 +458,7 @@
 \lstinputlisting[style=TeXstyle]{BinomParam.tex}
 
 giving 
-<<BinomParam, results=tex, echo=FALSE>>=
+<<BinomParam, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstinputSourceFromRForge("distr","man","BinomParameter-class.Rd","distr")
 @
 

Modified: pkg/SweaveListingUtils/inst/doc/altPrep.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/altPrep.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/altPrep.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 ### just want to modify 1 entry of option Rset
 ### so first copy the default settings:

Modified: pkg/SweaveListingUtils/inst/doc/locChange.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/locChange.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/locChange.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,3 +1,3 @@
-<<changeStyle, results=tex, echo=FALSE>>=
+<<changeStyle, results=tex, echo=FALSE, strip.white=FALSE>>=
 lstsetR(Rset = list("basicstyle" = "{\\tiny}"))
 @

Modified: pkg/SweaveListingUtils/inst/doc/preamble.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/preamble.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/preamble.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -8,11 +8,11 @@
 % -------------------------------------------------------------------------------
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
 SweaveListingPreparations()
 ## setToBeDefinedPkgs(....) line just necessary for the example;
-##    may be skipped in general  
+##    may be skipped in general
 ##    you may also wish to pass arguments to SweaveListingPreparations()
 ##    see ?SweaveListingPreparations
 setToBeDefinedPkgs(pkgs = c("SweaveListingUtils","distr"),

Modified: pkg/SweaveListingUtils/inst/doc/preamble2.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/preamble2.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/preamble2.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -4,23 +4,23 @@
 % -------------------------------------------------------------------------------
 \SweaveOpts{keep.source=TRUE}
 % -------------------------------------------------------------------------------
-<<SweaveListingsPreparations, results=tex, echo=FALSE>>=
+<<SweaveListingsPreparations, results=tex, echo=FALSE, strip.white=FALSE>>=
 require(SweaveListingUtils)
- ## we are only appending new options so use 
+ ## we are only appending new options so use
  ## c(getSweaveListingOption(.),<newoptions>)
 SweaveListingPreparations(#
         Rin = c(getSweaveListingOption("Rin"),
-                frame = "trBL", 
+                frame = "trBL",
                 backgroundcolor = "\\color{gray90}",
-                numbers = "left", 
+                numbers = "left",
                 numberstyle = "\\tiny",
                 stepnumber = "1",
                 numbersep = "7pt"),
         Rout = c(getSweaveListingOption("Rout"),
-                 frame = "trBL", 
-                 frameround = "fttt", 
+                 frame = "trBL",
+                 frameround = "fttt",
                  backgroundcolor = "\\color{gray95}",
-                 numbers = "left", 
+                 numbers = "left",
                  numberstyle = "\\tiny",
                  stepnumber="3",
                  numbersep = "5pt"))

Modified: pkg/SweaveListingUtils/inst/doc/reqdistr.tex
===================================================================
--- pkg/SweaveListingUtils/inst/doc/reqdistr.tex	2009-09-25 10:17:45 UTC (rev 590)
+++ pkg/SweaveListingUtils/inst/doc/reqdistr.tex	2009-09-28 11:43:37 UTC (rev 591)
@@ -1,4 +1,4 @@
-<<Prepa, echo=FALSE, results=tex>>=
+<<Prepa, echo=FALSE, results=tex, strip.white=FALSE>>=
 require(distr)
 ## preparation: load package distr and register its keywords
 @



More information about the Distr-commits mailing list