[R] odfWeave \Sexpr

Schnitzler, Johannes schnitzlerj at who.int
Thu Apr 17 23:45:11 CEST 2008


 

Dear All,

After doing more "try and error" ...
This problem occurred as I was loading R2HTML before the odfWeave function.
This issue is also described in the Sweave FAQ.

From the FAQ
<<A.16  After loading package R2HTML Sweave doesn’t work properly!
Package R2HTML registers an Sweave driver for HTML files, and after that the Syntax for HTML is in the search list before the default syntax.
  options(SweaveSyntax="SweaveSyntaxNoweb")

or calling Sweave like
  Sweave(..., syntax="SweaveSyntaxNoweb")

ensures the default syntax even after loading R2HTML.
>>
Best regards
Johannes


On Thu, Apr 17, 2008 at 12:30 PM, Schnitzler, Johannes <schnitzlerj at who.int> wrote:
> Dear All,
>
>  Using odfWeave is working fine for me using code chunks <<...>>= ... 
> @
>
>  But the inline \Sexpr{date()} is not evaluated and returns again
>  \Sexpr{date()} instead of   "Thu Apr 17 18:15:47 2008".
>
>  What might be the reason for that, what do I have to look for?
>
>  I'm using Windows XP, R 2.6.1, odfWeave_0.7.3 and OpenOffice 2.4.
>
>  Session Info:
>
>  R version 2.6.1 (2007-11-26)
>  i386-pc-mingw32
>
>  locale:
>  LC_COLLATE=C;LC_CTYPE=C;LC_MONETARY=English_United
>  Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252
>
>  attached base packages:
>  [1] grid      stats     graphics  grDevices utils     datasets  methods
>
>  [8] base
>
>  other attached packages:
>  [1] odfWeave_0.7.3     MASS_7.2-41        foreign_0.8-23
>  RColorBrewer_1.0-2
>  [5] abind_1.1-0        R2HTML_1.58        RODBC_1.2-3
>  XML_1.93-2.2
>  [9] lattice_0.17-6
>
>  loaded via a namespace (and not attached):
>  [1] tools_2.6.1
>
>  Thank you very much
>
>  Johannes
>
>  ______________________________________________
>  R-help at r-project.org mailing list
>  https://stat.ethz.ch/mailman/listinfo/r-help
>  PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
>  and provide commented, minimal, self-contained, reproducible code.
>



-- 

Max


More information about the R-help mailing list