search for: stangl

Displaying 20 results from an estimated 74 matches for "stangl".

Did you mean: stange
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 readi...
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 separate files (if the chunk who's name is a prefix co...
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
2007 Mar 15
1
Sweave bug using 'FDR' in chunk label (PR#9567)
Full_Name: Kevin Coombes Version: 2.4.0 OS: Windows XP Submission from: (NULL) (143.111.22.24) I'm running R 2.4.0 on a Windows XP machine, with only the default packages loaded. Running Sweave or Stangle on the following Rnw file: -------------- % bug.Rnw \begin{document} Demonstrate an Sweave/Stangle bug. <<info>>= sessionInfo() @ <<getFDR>>= x <- 1 @ <<getFDX>>= y <- 2 @ <<problem>>= <<getFDX>> <<getFDR>> @ \end{...
2003 Nov 23
0
Stangle - dropping re-used code chunks
...le.t[,1], lag.max=45, ci.type="ma") @ %% then plot it. \begin{figure}[tbh] \centering <<echo=FALSE,fig=TRUE>>= <<ex.ts.acf.mottle>> @ \caption{Autocorrelation plot of the \Data{mottle} dataset.} \label{fig:ex.ts.acf.mottle} \end{figure} %% example ends Stangle will (correctly) print the <<ex.ts.acf.mottle>> chunk twice, since it is called twice; once to create it, and once to re-use it. Cheers Jason -- Indigo Industrial Controls Ltd. http://www.indigoindustrial.co.nz 64-21-343-545 jasont at indigoindustrial.co.nz
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 specificati...
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 applied-insights.co.uk> > Hi Uwe, > Thanks f...
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: \documentc...
2008 Nov 29
3
including Sweave tangled code in '.Rnw' document
...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 'Stangle()' from within R to extract the code if I need to pin down a problem or experiment interactively. I would like to be able to include this resultant code in a verbatim environment in my final TeX'ed up document as an appendix so that the grader can look it over, etc. I could implement thi...
2012 Aug 16
0
How to call patchDVI::SweavePDF on an .Rnw which is not the master file?
...:help "Run SweavePDF") t); TODO: not working yet | (add-to-list 'TeX-command-list | '("Sweave" "R CMD Sweave --encoding=utf-8 %s" | TeX-run-command nil t :help "Run Sweave") t) | (add-to-list 'TeX-command-list | '("Stangle" "R CMD Stangle --encoding=utf-8 %s" | TeX-run-command nil t :help "Run Stangle") t) | (add-to-list 'TeX-command-list | '("make" "make" TeX-run-command nil t :help "Run make") t) | (setq TeX-command-default "Sw...
2008 Oct 13
1
MiKTEX-texi2dvi
...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 work fine but when I use "texi2dvi" it crashes. library(tools) Sweave("C:/Program Files/R/R-2.7.2/bin/foo.Rnw") Writing to file foo.tex Processing code chunks ... 1 : echo term verbatim (label=two) 2 : echo term verbatim (label=reg) 3 : echo term verbatim (label=fig1p...
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 getting this working that is posted at the LyX Wiki (http://wiki.lyx.org/Ly...
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") Writing to file Bericht.tex Processing code chunks ... 1 : term verbatim 2 : term verbatim...
2006 Apr 24
1
trellis.par.get without opening a device?
...ltheme$superpose.line$col = c('black',"red","blue","#e31111","green", "gray") .... Works perfectly, there is only a minor nuissance that trellis.par.get opens a device every time, producing a dummy Rplots.ps file or a window (when run after Stangle). Is there a way to suppress this? Well, not really serious. Dieter
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
2011 Mar 21
1
Sweave, white space and code blocks
...is very useful, and I'm gradually getting used to it. I've just been battling Sweave over the re-use of code chunks. As I am pretty ignorant in the byways of both Sweave and R, this took a chunk of time to sort out. Here is what I learned: If one re-uses a code chunk, then Sweave (but not Stangle) will insist that <> start in column 1. In particular, white space to its left is not allowed. I can't find any mention of this in the Sweave manual, nor in the Sweave FAQ. I'm planning to ask for this to be included in the Sweave FAQ, as it has certainly been frequently asked by me...
2010 Dec 13
0
batchfiles 0.6-0
....R file, e.g. Rtidy myfile.R > outfile.R (d) Rtools.bat - place Rtools on path for remainder of console session (0) (*) Rversions.bat - list R and set R version in registry, e.g. on Vista: el cmd/c Rversions R-2.12.0 (0) show-svn-info.hta - show svn info if current folder is an svn checkout (0) Stangle.bat - run arg1 through Stangle (h) (**) Sweave.bat - run arg1 through Sweave (h) (**) -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com _______________________________________________ R-packages mailing list R-packages...
2010 Dec 13
0
batchfiles 0.6-0
....R file, e.g. Rtidy myfile.R > outfile.R (d) Rtools.bat - place Rtools on path for remainder of console session (0) (*) Rversions.bat - list R and set R version in registry, e.g. on Vista: el cmd/c Rversions R-2.12.0 (0) show-svn-info.hta - show svn info if current folder is an svn checkout (0) Stangle.bat - run arg1 through Stangle (h) (**) Sweave.bat - run arg1 through Sweave (h) (**) -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com _______________________________________________ R-packages mailing list R-packages...
2003 Apr 22
2
Handling of upper/lowercase in package names (PR#2816)
...nettes print.checkAssignFuns print.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:n...
2009 Sep 08
1
makefile for sweave
...iles from the Rnw (Sweave) files %.tex: %.Rnw echo "library(utils); options(width=60); Sweave('$<')" | ${R_PRG} --no-save --vanilla mv $(notdir $*.tex) $(dir $<) # How to build the R code files from the Rnw (Sweave) files %.R: %.Rnw echo "library(utils); Stangle('$<')" | ${R_PRG} --no-save --vanilla %.bib: TEXINPUTS=${TPUTS} pdflatex $< bibtex $< %.aux: TEXINPUTS=${TPUTS} pdflatex $< bibtex $< %.idx: TEXINPUTS=${TPUTS} pdflatex $< makeindex $< cheers! [[alternative HTML version deleted]]