Displaying 15 results from an estimated 15 matches for "sweavesyntaxnoweb".
2010 Nov 29
1
Sweave choking on \\ in filename
...ile. Using "/"
works fine. The problem is that Eclipse+StatET uses "\\" in the
filename.
And example of the error, traceback and sessionInfo are given below.
Best regards,
Thierry
> Sweave("Q:\\BMK\\cursussen\\interne_opleiding\\deelnemerslijst.Rnw",
syntax="SweaveSyntaxNoweb")
Writing to file deelnemerslijst.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
Error : '\B' is an unrecognized escape in character string starting
"Q:\B"
> traceback()
4: stop(msg, err, call. = FALSE)
3: RweaveTryStop(chunkexps, options)
2: driv...
2007 Oct 07
5
how to use \Sexpr{} with sweave
I'm trying to learn Sweave. So far things are going well with the chunks of code identified by << >>=
But I'm having trouble with the in-line text use of \Sexpr.
Here is a short example .Rnw file:
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{Sweave}
\begin{document}
<<test>>=
pnorm(1)
@
\Sexpr{2+6}
2008 Apr 17
1
odfWeave \Sexpr
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
2004 Jul 05
1
Apparent conflict between \Sexpr in Sweave and R2HTML
I have come across an apparent bug in the operation of Sweave. If I
load the package R2HTML then execution of \Sexpr{} in an *.Rnw file no
longer works. The \Sexpr{} code is simply written to the *.tex file.
Below are my *.Rnw file, commands, and output.
The Sweave file, Sweave-test-1_short.Rnw:
% -*- mode: noweb; noweb-default-code-mode: R-mode; -*-
\documentclass{article}
\title{A Test
2003 Apr 22
2
Handling of upper/lowercase in package names (PR#2816)
...t.checkDemoIndex print.checkDocArgs print.checkDocStyle print.checkFF
print.checkMethods print.checkTnF print.checkVignetteIndex
print.checkVignettes print.codoc print.undoc Rdindex Rtangle RtangleSetup
RtangleWritedoc RweaveLatex RweaveLatexOptions RweaveLatexSetup Stangle
Sweave SweaveSyntaxLatex SweaveSyntaxNoweb SweaveSyntConv undoc
> search()
[1] ".GlobalEnv" "package:Tools" "package:tools" "package:methods"
"package:ctest"
[6] "package:mva" "package:modreg" "package:nls" "package:ts"
"Au...
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
...b=rnorm(100), group = c("g1",
"g2", "g3", "g4"))
plot(df$a, df$y, foo)
@
\caption{test figure one}
\label{fig:one}
\end{center}
\end{figure}
\end{document}
Sweave command run:
Sweave("test.Rnw", syntax="SweaveSyntaxNoweb")
Sweave.sty:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Sweave}{}
\RequirePackage{ifthen}
\newboolean{Sweave at gin}
\setboolean{Sweave at gin}{true}
\newboolean{Sweave at ae}
\setboolean{Sweave at ae}{true}
\DeclareOption{nogin}{\setboolean{Sweave at gin}...
2020 Jul 08
1
Adding RtangleRuncode and RtangleFinish to exports of utils
...st the current r-devel tree:
Index: src/library/utils/NAMESPACE
===================================================================
--- 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)
+...
2010 Oct 22
1
trouble with \textless in Hmisc latex() on a drop1 object
...\textless none\textgreater
the document compiles fine.
Reproducile example below. Any suggestions?
Thanks.
Chris Ryan
SUNY Upstate Medical University Binghamton Clinical Campus
\documentclass{article}
\begin{document}
<<options, echo=FALSE, hide=TRUE>>=
options(SweaveSyntax = "SweaveSyntaxNoweb")
library(Hmisc)
@
<<code>>=
salmon <- data.frame(cbind(c(rep(0,49),rep(1,51)), rnorm(100), rnorm(100)))
names(salmon) <- c("country","freshwater","marine")
model1 <- glm(country~freshwater+marine, family="binomial", data=salmon)
su...
2012 Feb 23
1
Sexpr not getting expanded in Sweave
An Sweave file, 'test.Rnw':
\documentclass{article}
\title{Sweave minimal}
\author{MK}
\begin{document}
\maketitle
We try Sweave:
<<1>>=
data(airquality)
summary(airquality)
x <- airquality[1, 1]
@
I try Sexpr: \Sexpr{x}
We plot:
\begin{center}
<<2, fig=TRUE, echo=FALSE >>=
boxplot(Ozone ~ Month, data = airquality)
@
\end{center}
\end{document}
I check the
2012 Apr 02
1
\Sexpr{}
Did anyone know whether the problem " it doesn't evaluate \Sexpr{} in Sweave" has been fixed? I checked r help page and realized it was asked a couple of years ago. But I didn't find solutions.
Thanks for your help in advance!
Hua
[[alternative HTML version deleted]]
2011 Apr 19
1
Sweave tokens not in column 1: enhancement request
When I re-use a code chunk in Sweave, together with keep.source=TRUE, I would
like to follow usual programming conventions in which the amount of white
space on the left indicates logical structure. It seems that one can't do
this in Sweave, or am I wrong?
for (i in ind) {
do such-and-such and then
<<code chunk 20>>
do something-else
}
Sweave will say that << is
2009 Jan 06
2
Sweave in LATEX
Hello
I have been setting up my computer to run Sweave. I have got the whole thing
working on example files, except that my MikTex returns an "Undefined
Control Sequence" error for \Sexpr and my output file contains verbatim code
sequences at the apropriate point in the text rather than the R output. The
rest of the output file is fine with tables, R code sequences and figures in
the
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
...results = xml>>=
odfTable(tabela2,useRowNames=T,name ='Tabela 2')
@
in R console ...
>library(odfWeave)
>imageDefs <- getImageDefs()
>imageDefs$type <- 'bmp'
>imageDefs$device <- 'bmp'
>setImageDefs(imageDefs)
>options(SweaveSyntax="SweaveSyntaxNoweb")
>odfWeave('teste.odt','figura1.odt')
Copying teste.odt
Setting wd to
C:\Users\PEDROE~1\AppData\Local\Temp\Rtmpfv32oJ/odfWeave0215405313
Unzipping ODF file using unzip -o "teste.odt"
Archive: teste.odt
extracting: mimetype
creating: Configurations2/sta...
2013 Sep 02
1
Sweave: printing an underscore in the output from an R command
I am working with Sweave and would like to print out into my latex document the result of the R command
version$platform
So what I first tried in my .Rnw document was \Sexpr{print(version$platform)}.
However, the output from this command is the string "x86_64-apple-darwin10.8.0" (without the quotes). This contains an underscore, which is a special character in tex and so I get an error
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",