Displaying 2 results from an estimated 2 matches for "test_sweave".
2010 May 28
1
Does Sweave run in the global environment ?
Hello
It seems that sweave always runs in the global environment. I want to
run sweave from within a function, and pass a variable into sweave,
however when I do this, sweave doesn't see the variable.
Here's my example test_sweave.Rnw file
|%
\documentclass[a4paper]{article}
\usepackage[OT1]{fontenc}
\usepackage{Sweave}
\begin{document}
\title{Test Sweave Document}
\author{Paul Hurley}
\maketitle
<<>>=
if(exists("foo")){print(foo)}
ls()
Sys.time()
@
\end{document}
|
If I run this code;
|testFoo...
2011 Dec 02
2
Sweave problem on Mac OS when using umlauts and summary()
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111202/d63d9021/attachment.pl>