Displaying 3 results from an estimated 3 matches for "tmpcon".
2008 Oct 16
1
Rscript -e, Sweave and tempdir()
...version of Rscript, the tempdir() command and its invocation by Sweave.
Any ideas?
Thanks
Paul.
EARLIER EMAIL FROM F. LEISCH (AUTHOR OF SWEAVE)
___________________________________
It's not figures but text output which is collected via temporary files. The corresponding code in Sweave is:
tmpcon <- file()
sink(file=tmpcon)
err <- NULL
if(options$eval) err <- evalFunc(ce, options)
cat("\n") # make sure final line is complete
sink()
output <- readLines(tmpcon)
close(tmpcon)
So you need to figure out where file() opens the anoymous temporary file on your operating syst...
2002 Jul 12
1
Sweave problem with recursive call, Add.
This diff would be better.
Gunnar
-------------- next part --------------
268a269,270
>
> ocf <- character()
285,286c287,298
<
< tmpcon <- textConnection("output", "w")
---
>
> options(warn=-1)
> if (is.finite(max(as.integer(sub("output","",apropos("output"))),na.rm=TRUE))) {
> oc <- max(as.integer(sub("output","&qu...
2002 Jul 12
1
Sweave problem with recursive call, Add.
This diff would be better.
Gunnar
-------------- next part --------------
268a269,270
>
> ocf <- character()
285,286c287,298
<
< tmpcon <- textConnection("output", "w")
---
>
> options(warn=-1)
> if (is.finite(max(as.integer(sub("output","",apropos("output"))),na.rm=TRUE))) {
> oc <- max(as.integer(sub("output","&qu...