Displaying 7 results from an estimated 7 matches for "sweavehooks".
2011 Apr 16
1
Sweave, SweaveHooks and printing the label
I would like to print the label of each code chunk, just before printing the
code chunk itself. Is that possible using SweaveHooks, or by some other
mechanism?
Thanks
David
--
View this message in context: http://r.789695.n4.nabble.com/Sweave-SweaveHooks-and-printing-the-label-tp3453829p3453829.html
Sent from the R help mailing list archive at Nabble.com.
2007 Dec 01
2
Sweave: Variables in code chunk headers
I would like to be able to do something like this:
<<echo=F,fig=T,width=mywidth>>=
...
@
with mywidth set in a previous code chunk. Is there a way to do this in
Sweave?
(Sorry for two questions in a row, I have been saving these up.)
--
Michael
2007 Dec 01
2
Sweave: Variables in code chunk headers
I would like to be able to do something like this:
<<echo=F,fig=T,width=mywidth>>=
...
@
with mywidth set in a previous code chunk. Is there a way to do this in
Sweave?
(Sorry for two questions in a row, I have been saving these up.)
--
Michael
2011 Mar 23
3
Sweave: multiple graphic formats, e.g. win.metafile
...# code which generates the graphic
}
win.metafile("foobar.emf")
plotit()
dev.off()
pdf("foobar.pdf")
plotit()
dev.off()
@
\includegraphics{foobar}
I would like to have something like:
<<foobar, fig=true, pdf=true, emf=true>>
# code which generates the graphic
@
SweaveHooks are not applicable for this feature. Therefore, I thought it would be best to extend the typical 'RweaveLatex' driver by an option 'emf' - like eps and pdf. So, here is the result of some handicrafts:
RweaveLatexEMF <- function ()
{
# add option emf (= FALSE) and set default fo...
2005 Nov 17
3
changing figure size in Sweave
Hi
In Sweave, how does one change the size of the plots?
I tried using a hook:
<<echo=FALSE, print=FALSE, fig=TRUE>>=
options(SweaveHooks=list(fig=function() ps.options(width=1)))
library(graphics)
pairs(iris)
@
but this didn't change the size of the figure. How to make the
figures a
different size?
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 0...
2003 Dec 04
2
passing par() options to pdf under Sweave
I'm using Sweave to generate LaTeX output from R. Thank-you
very much for this capability. It is very useful.
Could someone please tell me how to pass non-default
graphics parameters from par() to the pdf driver when it is
called by Sweave?
(I need to change some of the margin defaults. )
Hoping there is an easy solution to this question,
Anne York
2020 Jul 08
1
Adding RtangleRuncode and RtangleFinish to exports of utils
...===========================
--- src/library/utils/NAMESPACE (revision 78794)
+++ src/library/utils/NAMESPACE (working copy)
@@ -166,9 +166,9 @@
Sweave, SweaveSyntConv, SweaveSyntaxLatex, SweaveSyntaxNoweb,
RtangleWritedoc, RweaveChunkPrefix, RweaveEvalWithOpt,
RweaveTryStop, SweaveHooks, RweaveLatexWritedoc,
- RweaveLatexOptions, RweaveLatexFinish,
+ RweaveLatexOptions, RweaveLatexFinish, RtangleFinish,
.RtangleCodeLabel,
- makeRweaveLatexCodeRunner)
+ makeRweaveLatexCodeRunner, RtangleRuncode)
if(tools:::.OStype() == "unix") {
export(...