Displaying 20 results from an estimated 300 matches similar to: "Sweave bug using 'FDR' in chunk label (PR#9567)"
2010 Dec 11
5
(S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?
Dear list,
Inspired by the original Knuth tools, and for paedaogical reasons, I wish
to produce a document presenting some source code with interspersed
comments in the source (see Knuth's books rendering TeX and metafont
sources to see what I mean).
I seemed to remember that a code chunk could be defined piecewise, like in
Comments...
<<Chunk1, eval=FALSE, echo=TRUE>>=
2007 Oct 23
0
Residuals from biglm package
Hi all,
first of all, I'm not an expert on R, I'm still learning, so sorry if this is a stupid question...
I have a large dataset that is to big for my computer memory, and I found quite useful the package biglm. Now everything is working perfectly. But if I want the residuals, how I can do it?
Let's say that we are running the example:
> data(trees)>
2006 May 17
1
Re : Large database help
Thanks for doing this Thomas, I have been thinking about what it would
take to do this, but if it were left to me, it would have taken a lot
longer.
Back in the 80's there was a statistical package called RUMMAGE that did
all computations based on sufficient statistics and did not keep the
actual data in memory. Memory for computers became cheap before
datasets turned huge so there
2007 Mar 13
2
Sweave question: prevent expansion of unevaluated reused code chunk
Hi,
Consider the following (much simplified) Sweave example:
--------------
First, we set the value of $x$:
<<chunk1,eval=FALSE>>=
x <- 1
@
Then we set the value of $y$:
<<chunk2,eval=FALSE>>=
y <- 2
@
Thus, the overall algorithm has this structure:
<<combined,eval=FALSE>>=
<<chunk1>>
<<chunk2>>
@
2007 Mar 06
1
Stangle and annotate
How exactly should I go about turning off annotation when running
Stangle (Rtangle) with "R CMD Stangle myfile.Rnw"?
Ideally I would like to be able to turn annotation off and on for
individual code chunks, or maybe better, to annotate only named
chunks. Are either of these things easily done?
Is there some way to figure out this sort of thing without reading
through the source code
2010 May 05
3
Latex and Stangle()
Hi,
I'm using the Sweave and I would like include codes of the R
in my LaTeX file.
I extracts the R code with Stangle (), whose name is
Relatorio.R but I can't include it
in the Latex file as an appendix.
Suggests?
Thanks,
--------------------------------------
Silvano Cesar da Costa
Departamento de Estat?stica
Universidade Estadual de Londrina
Fone: 3371-4346
2014 May 30
1
R CMD check for the R code from vignettes
Hi,
Recently I saw a couple of cases in which the package vignettes were
somewhat complicated so that Stangle() (or knitr::purl() or other
tangling functions) can fail to produce the exact R code that is
executed by the weaving function Sweave() (or knitr::knit(), ...). For
example, this is a valid document that can pass the weaving process
but cannot generate a valid R script to be source()d:
2014 Mar 05
1
Sweave provides a misleading error when vignette engine not fully specified
Trying to Stangle / Sweave a file
$ cat vignette.Rnw
%\VignetteEngine{knitr}
\documentclass{article}
\begin{document}
\end{document}
results in a misleading error message:
~/tmp$ R CMD Stangle vignette.Rnw
Error: Vignette engine package not specified
Execution halted
when what is missing is the full specification knitr::knitr; 'vignette engine
package and function not specified' ?
2007 Apr 07
1
bug in Stangle(split=TRUE)
[I originally emailed this to Friedrich Leisch but got no response and I
just wanted to make sure it made it in before release.]
While working with Stangle(), I noticed a problem when using 'split =
TRUE'. Particularly, when there are two chunks where one chunk's name
is a prefix of another chunk's name, then the two chunks will be written
to a single file rather than two
2007 May 18
1
How to extract R codes that embedded in a HTML file
> -------- Original Message --------
> Subject: Re: [R] How to extract R codes that embedded in a HTML file
> using Stangle?
> Date: Thu, 17 May 2007 17:01:30 +0000
> From: Tao Shi <shitao at hotmail.com>
> To: ligges at statistik.uni-dortmund.de, lecoutre at stat.ucl.ac.be
> CC: r-help at stat.math.ethz.ch
> : <jmcconnell at
2007 Jun 28
4
Sweave bug? when writing figures / deleting variable in chunk
I have found a quite strange (to me) behaviour in Sweave. It only
occurs in the following situation:
1. define a variable in one chunk
2. use it within a subsequent figure-generating chunk
3. delete it at the end of that same chunk
Then the Sweave driver chokes, not finding the variable name when
generating the figure
Example:
% document bug2.Rnw
\documentclass{article}
\usepackage{Sweave}
2008 Nov 29
3
including Sweave tangled code in '.Rnw' document
Hello List,
I have been using Sweave for my homework this last quarter and have been
very impressed at how much time and effort it saves me. I, however, have
run up against a problem which I have not been able to solve using any of
the Sweave/LaTeX tricks I know. I work through my homework one problem at a
time, typesetting equations and writing R code, etc. and occasionally use
2020 Jan 26
2
[RFC] Replacing inalloca with llvm.call.setup and preallocated
Hello all,
A few years ago, I added the inalloca feature to LLVM IR so that Clang
could be C++ ABI compatible with MSVC on 32-bit x86. The feature works, but
there is room for improvement. I recently took the time to write up a
design using token values that will hopefully be better named and easier to
work with and around.
For the technical details of the proposal, I've written up the RFC
2008 Oct 13
1
MiKTEX-texi2dvi
Sorry, I forgot to include a reproducible example on my last e-mail but here it is: Since the file is large to be included here:
The path to the foo.Rnw examples is:
www.stat.umn.edu/~charlie/Sweave/foo.Rnw
and is suppossed to produce a pdf like this one:
http://www.stat.umn.edu/~charlie/Sweave/foo.pdf
I have downloaded MiKTEX but I don't know how to make it work. Sweave and Stangle seem to
2010 May 20
2
Sweave and uttf-8 under Windows XP
Hi list,
I need to process a Rnw file and and a csv file (both are encoded in
UTF-8) under Windows XP (R Version 2.11.0, i386, mingw32).
I can source and run the Rnw file:
> Stangle("Bericht.Rnw")
Writing to file Bericht.R
> source(file("Bericht.R", encoding="UTF-8"))
which runs fine, but running Sweave() failed:
> Sweave("Bericht.Rnw")
2010 Apr 08
1
texi2dvi runs but produces no output
I am working on a Windows XP machine with R 2.10.1 and a recent
installation of MiKTeX 2.8. I use LyX (www.lyx.org) to write documents
and have it set up to run Sweave, Stangle, and make the PDF through R
using a batch script and a MakeSweave.R file. This system worked just
fine until I ran some MiKTeX updates yesterday. This is a bit
embarrassing as I helped produce a "How-to" guide to
2008 Mar 26
1
Simulate ARX model.
I have obtained from transfer functions, the state space matrices for the following state space model.
x* = Ax + Bu
y = Cx + Du
I have A, B, C, and D, now I would like to take the exogenous inputs and simulate the data using the state space model. I know there is a simulate function in the package dse1, but I am unsure as to what type of TSmodel to create to put into it. Could anyone give me
2003 Apr 22
2
Handling of upper/lowercase in package names (PR#2816)
Hi,
This is (presumably?) a bug in R 1.7.0 under Windows. I have not tested it
on other systems. Attachment of packages is case sensitive but not
library(), resulting in multiple loadings of the same package if the library
name is spelled differently. The following example loads the `tools'
package, once as `tools' and once as `Tools'. This behavior is the same with
all packages and
2006 May 21
2
Suggesting changes to HELP files?
Is there a procedure for suggesting changes to HELP files of the core
R distribution? If yes, what is it? If it would be considered a
friendly gesture, I could find the relevant *.Rd file and submit a
suggested modification to it someplace. Alternatively, I could just
send suggestions someplace if they would receive appropriate
consideration.
On many occasions, I think of
2014 Nov 13
3
Changing style for the Sweave vignettes
As a user, I am always annoyed beyond measure that Sweave vignettes
precede the code by a command line prompt. It makes running examples
by simple copying of the commands from the vignette to the console a
pain. I know the idea is that it is clear what is the command, and
what is the output, but I'd rather precede the output with some kind
of marking.
Is there any other solution possible /