search for: noweb

Displaying 20 results from an estimated 64 matches for "noweb".

Did you mean: nowe
2007 Jun 20
1
Help With Sweave:
Hi All, I am running Ubuntu Feisty (7.04) on a Thinkpad T41. I've installed the nowebm package for Ubuntu. Working from this HowTo: http://www.ci.tuwien.ac.at/~leisch/Sweave/example-1.Snw I try to compile the example *.Snw as in the Sweave manual: mdj at lapmdj:~/Desktop/Sweave/example1$ noweb example-1.Snw Can't open output file Despite the error, a *.tex file is produced. No...
2003 Nov 13
1
Can't get Sweave syntax highlighting with Emacs
...I have followed Friedrich's suggestion for code to insert into my .emacs file. The complete section from my .emacs file is given below. When I load a *.Snw file, font is white until I press M-x, then the first code and document chunks get highlighted, but not the rest of the file. Latex and Noweb menus are active, but not ESS, and there is no switching of modes as I move the pointer to different types of chunks. ; ------------------------------------------------------------- ; Emacs Speaks Statistics ; mode for R ; ------------------------------------------------------------- (load "/...
2002 Jul 17
1
editing Sweave files in xemacs with ess (noweb), auctex and reftex
I am having some trouble getting reftex, in particular the bibtex related features, to work properly in xemacs when editing text in Sweave files. I have added (defun Rnw-mode () (noweb-mode) (if (fboundp 'R-mode) (setq noweb-default-code-mode 'R-mode))) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode)) in my .xemacs/init.el file, as suggested by the Sweave...
2008 Aug 05
4
literate programming
...e summer). This is the most subtle code I've done in S, both mathematically and technically, and seems a perfect vehicle for the "literate programming" paradym of Knuth. The Sweave project is pointed at S output however, not source code. I would appreciate any pointers to an noweb type client that was R-aware. Other suggestions are welcome as well. At the end of the day I'd like to have a good user guide, technical reference, and solid enough code documentation that others can begin to participate as well. (Retirement in 10 years -- I don't expect to mainta...
2003 Apr 23
1
Setting up Xemacs + Sweave
Dear list, I have tried to setup my Xemacs for use with Sweave, which I indend to learn. I have followed the instructions in the Sweave FAQ, that is to say, I put (defun Rnw-mode () (require 'ess-noweb) (noweb-mode) (if (fboundp 'R-mode) (setq noweb-default-code-mode 'R-mode))) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode)) (setq reftex-file-extensions '((&qu...
2003 Jan 07
2
Generating .R and .Rd files with Sweave/noweb?
I'm writing a couple of related functions, and I'd like to generate a (single) .R file (containing the function definitions), and separate .Rd files (documenting each function). Would this be possible with Sweave/noewb? Has anyone tried something along this idea? -- Regards, Bj?rn-Helge Mevik
2009 Aug 24
0
CRAN and noweb
his is a query for suggestions on how best to setup the package for coxme. This should be ready for CRAN in about a week - I'm working out documentation details and some last test cases. The R CMD check and INSTALL processes work great on my computer. The rub is that they depend on noweb. Both algorithmicly and statistically this is the most complex bit of code I have done, and after some reading I decided to give the "literal programming" approach a try. It turns out to be one of the better ideas I've ever tried. The current package directory (on r-forge.r-progje...
2009 Jul 27
2
noweb and R
I'm working on the next release of coxme (ready to start some testing), and have written major chunks of it using noweb -- very similar to Sweave except I'm generating code and documentation for the code rather than vingetes. The question: I have directory with .Rnw objects and a Makefile therein that generates most of the .R files. I don't see any guidance in the documentation on where this should pr...
2005 Jul 27
4
LyX and Sweave
>>>>> On Mon, 25 Jul 2005 14:12:41 +0200, >>>>> Gorjanc Gregor (GG) wrote: > Hello R-users! > I have tried to use Sweave within LyX* and found two ways to accomplish > this. I have attached LyX source file for both ways as well as generated > PDFs. I have copied Gregor's files at http://www.ci.tuwien.ac.at/~leisch/Sweave/LyX for those who
2003 Oct 11
0
Some teaching/training materials (ESS/ESS-Noweb-Sweave/SNOW)
http://www.analytics.washington.edu/~rossini/courses/cph-statcomp/ Lecture/Labs 1 and 2 are on For ESS, ESS-Noweb-Sweave. Lecture/Lab 4 is on parallel computing with R (each Lecture/Lab was just under 2 hours). Comments/corrections welcome, they were used last week here in Copenhagen, so "most" of the bugs are out. best, -tony p.s. Lecture/Lab 3 on visualization needs to be completely redone f...
2012 Jan 24
1
Sweave driver extension
Almost all of the coxme package and an increasing amount of the survival package are now written in noweb, i.e., .Rnw files. It would be nice to process these using the Sweave function + a special driver, which I can do using a modified version of Sweave. The primary change is to allow the following type of construction <<coxme>> coxme <- function(formula, data, subset, blah blah ){...
2004 Feb 26
2
Sweave and Xemacs on Windows2000?
...emacs files in my home in .xemacs directory look like init.el (load "D:/prog/XEmacs/xemacs-packages/lisp/auctex/tex-site") (load "D:/prog/XEmacs/xemacs-packages/sweave-site.el") .emacs (either in home or in home/.xemacs/ does not matter.) (defun Rnw-mode () (require 'ess-noweb) (noweb-mode) (if (fboundp 'R-mode) (setq noweb-default-code-mode 'R-mode))) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode)) (setq reftex-file-extensions '((&qu...
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
..."Sweave-test-1.Rnw", package = "utils") ## enforce par(ask=FALSE) options(device.ask.default=FALSE) ## create a LaTeX file Sweave(testfile) --------------------------------------------------- I get a .tex file: ---------------------------------------------------- % -*- mode: noweb; noweb-default-code-mode: R-mode; -*- \documentclass[a4paper]{article} \title{A Test File} \author{Friedrich Leisch} \usepackage{a4wide} \usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave} \begin{document} \maketitle A simple example that will run in any S engine: The integers from 1 to 10...
2002 Nov 05
0
summary: Sweave - documenting a long function
...races around each chunk of code to make the output in the pdf file look a bit prettier. This seems to work without any side effects.) Frank Harrell suggested implementations of 'pretty printing' for Sweave. Again, this was copied to the list, so I wont repeat it. Peter Wolf pointed me to noweb without Sweave http://www.eecs.harvard.edu/~nr/noweb/intro.html (see below for more). Regards, John. John Gavin <john.gavin at ubsw.com>, Quantitative Risk Models and Statistics, UBS Warburg, 100 Liverpool Street (6th floor), London EC2M 2RH, UK. Phone +44 (0) 207 567 4289 Fax +44 (0) 20...
2023 Nov 29
1
Code editor for writing R code
...you *writing* LaTeX in comments -- do you want a code editor that will render and display the LaTeX as you write? (Or am I misunderstanding something?) Does anyone do classic literate programming *sensu* Knuth any more? https://rpubs.com/bbolker/3153 https://cran.r-project.org/web/packages/noweb/vignettes/noweb.pdf On 2023-11-29 10:57 a.m., Christofer Bogaso wrote: > Hi, > > Currently I use VS-Code to write codes in R. While it is very good, it > does not allow me to write Latex expressions in comments, which I am > willing to have to write corresponding mathematical expr...
2004 Jul 05
1
Apparent conflict between \Sexpr in Sweave and R2HTML
...oss 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 File} \author{Friedrich Leisch} \SweaveOpts{echo=FALSE} \begin{document} \maketitle Now we look at Gaussian data: <<>>= library(stats) x <- rnorm(20) print(x) print(t1 <- t.test(x)) @ Note that we can easi...
2009 Jan 19
1
Sweave encoding problem
Hello, Sweave seems to have trouble processing german letters in R. For example, my noweb R-input looks like this. <<>>= Oberfl?chenfehler = c(4, 11, 6, 2, 7, 9) @ If I send it through Sweave, I get the following error message. error: chunk 1 Error in parse(text = chunk) : unexpected input in "Oberfl??" extra: Warning message: In readLines(f[1]) : underfull la...
2006 Jul 05
2
Editors which have strong/solid support for SWeave?
...lightened monks of the One True Editor (http://www.dina.dk/~abraham/religion/) Are there any other Microsoft-centric editors or IDEs which have solid support for writing SWeave documents (dual R / LaTeX enhancements similar to ESS's support)? Has anyone tried the folding editors which support Noweb? (the alternative would be brainwashing, but that is generally frowned upon ;-). best, -tony blindglobe at gmail.com Muttenz, Switzerland. "Commit early,commit often, and commit in a repository from which we can easily roll-back your mistakes" (AJR, 4Jan05).
2003 Feb 10
0
calling sweave function from LaTex re directories, formatting
...cs 21.2.1 ------------------- Colleagues I have followed suggestions by David Whiting, Friedrich Leisch and Frank Harrell, but have a few more queries. 1. On formatting: I added the suggested sweave customization to my .emacs file ; Sweave customisation (defun Rnw-mode () (require 'ess-noweb) (noweb-mode) (if (fboundp 'R-mode) (setq noweb-default-code-mode 'R-mode))) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode)) (setq reftex-file-extensions '(...
2002 Oct 10
1
problem with Sweave on 1.6 on NT4
...print term verbatim 2 : term hide 3 : echo print term verbatim 4 : term verbatim 5 : echo term verbatim 6 : echo term verbatim eps pdf 7 : echo term verbatim eps pdf You can now run LaTeX on Sweave-test-1.tex --------- But the opening lines of Sweave-test-1.tex are: --------- % -*- mode: noweb; noweb-default-code-mode: R-mode; -*- \documentclass[a4paper]{article} \title{A Test File} \author{Friedrich Leisch} \usepackage{a4wide} \usepackage{c:etcRrw1060/share/texmf/Sweave} \begin{document} ... ------------ The line '\usepackage{c:etcRrw1060/share/texmf/Sweave}' is wrong. In V...