search for: snw

Displaying 20 results from an estimated 77 matches for "snw".

Did you mean: saw
2004 Feb 26
2
Sweave and Xemacs on Windows2000?
Hallo! Trying to configure Xemacs to work with .snw files on windows 2000. Tried to do it how it is described in the FAQ for Sweaves. When starting xemacs with and Snw file *ESS* buffer contains hundrets of lines and the few last ones. (ess-loop-timeout . 500000) (inferior-ess-primary-prompt . ^) (inferior-ess-secondary-prompt . ^) (comint-use-...
2003 Apr 23
1
Setting up Xemacs + Sweave
...ave 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 '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib"))) (setq TeX-file-extensions '("Snw" "Rnw" "nw" "tex&...
2003 Nov 13
1
Can't get Sweave syntax highlighting with Emacs
I can't get Emacs to automatically do syntax highlighting of Sweave files. 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. ; -----------------------------------...
2009 Jun 09
2
Sweave and accents
Hello. I want to write my notes in Sweave in my own language (spanish). But my language has accents and when I run Sweave in R to translate my Snw file into the tex file the accents are translated into unrecognizable characters. For example, the word "cami?n" (truck) is translated into "cami??n" Somebody knows how can I do it? One solution I don't like is using a perl program to substitute my accented letters i...
2012 Nov 08
1
sweave xtable and driver RweaveHTML
Hi, So far I used Sweave to create pdf reports. I used xtable to create some tables in the report. But now I would like to use the same snw file to generate an HTML version. The xtable output breaks the RweaveHTML driver. library(R2HTML) Sweave('analyseLFQ.Snw', driver = RweaveHTML) Error in match.arg(options$results, c("Robj", "html", "hide")) : 'arg' should be one of “Robj”, “html”, “h...
2006 Feb 13
2
Sweave, mle and curve
I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw: \documentclass[a4paper,12pt]{article} \usepackage[latin1]{inputenc} \title{Maximum likelihood} \author{G伱伓ran Brostr伱伓m} \begin{document} \maketitle <<fig=TRUE>>= ## Simulate Y: n <- 25 Y <- sum(rpois(n, lambda = 1)) Y ## Define minusloglik: minusloglik <- function(thet...
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>
2004 Feb 05
2
Sweave problem
Here is the file minimal.Snw: \documentclass[a4paper]{article} \title{R tips and tricks} \author{Murray Jorgensen} \usepackage{Sweave} \begin{document} \maketitle \section*{Entering data from a single variable} The following data are transformed tensile strength measurements on polyester fibres. They may be found on the file...
2007 Oct 04
1
Sweave and LaTeX
Hi I started using Sweave and LaTeX but have a (smaller) problem. As I am not yet very fluent in LaTeX I do the following: I texify my snw-file to look for errors in my LaTeX and correct them. However, if I have the following chunk, I get an error when texifying: ... \usepackage{Sweave} ... <<echo=F, results=tex>>= workdr<-('c:/aaa/Projekte/IOT2005/Bericht/Workingpapers') setwd(workdr) xtable(table_nzo,captio...
2007 May 18
1
How to extract R codes that embedded in a HTML file
...: 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 for the answer, but I still need a bit more clearification. I > always > thought that a .rnw or .snw file is a file mixing word processing markup > (e.g. tex or HTML) and R/S code using noweb syntax. Is the reason for > 'Stangle' is not working with .rnw file with HTML due to there is no proper > driver available (like RweaveHTML driver for Sweave)? If yes, does R2HTML &...
2004 Jan 07
1
Sweave and X11 on OSX 10.3
Hi - I'm running R 1.8.1 (compiled from source) on Mac OS X 10.3 (Panther). I find that, if Apple's X11 application is not running, Sweave gives an error when it wants to create a pdf or eps figure. E.g., in the package's own example-1.Snw file a boxplot is created at chunk 2: <<fig=TRUE,echo=FALSE>>= boxplot(Ozone ~ Month, data = airquality) @ Normally this will create a pdf and an eps version of the boxplot. I get: > Sweave("example-1.Snw") Writing to file example-1.tex Processing code chunks ... 1 : ec...
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. Now I am stuck because I cannot seem to get the CTAN noweb package correctly installed for my Latex ins...
2002 Jul 17
1
editing Sweave files in xemacs with ess (noweb), auctex and reftex
...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 manual FAQ. While this most likely involves reftex/ess interaction, I wondered if someone on these lists is successfully using the combination AUCTeX LaTeX-mode/bib-cite/reftex in xemacs 21.4.8 and ess 5.1.20 (on a...
2002 Jan 28
1
residuals in plot.gam (mgcv)
Is there a way to add residuals to plots produced by plot.gam in the mgcv package? I'm looking for something like what you get using resid=T in Splus plot.gam. Thanks in advance Toby -----Original Message----- From: Simon Wood [mailto:snw at mcs.st-and.ac.uk] Sent: 23 January, 2002 8:14 PM To: Toby.Patterson at csiro.au Cc: r-help at stat.math.ethz.ch Subject: Re: [R] multiple surfaces in persp? > Does anybody know if persp() can display multiple surfaces on the one plot? > If not is there any other functions/code that will...
2003 Feb 10
0
calling sweave function from LaTex re directories, formatting
...ile ; 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 '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib"))) (setq TeX-file-extensions '("Snw" "Rnw" "nw" "t...
2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
...by the cat function in basicplot. Or: \begin{figure} \includegraphics{scatter1.pdf} \caption{myname} \end{figure} These lines are not in the environment acted by Latex. I tried a variant of the function where <<results=tex,echo=FALSE>> and received the same result. Below are the files *.Snw -> *.tex -> *.pdf and the output I received while compiling. If there is anything else I can give to help you help me just let me know. Thanks! Matt My system: T41 IBM Thinkpad Ubuntu Feisty (7.04) R version 2.5 testmacro3.Snw: mdj at lapmdj:~/mydocs/R$ more testmacro3.Snw \documentclass[a...
2008 Oct 13
2
Sweave from Kile
...put: > ***** cd '/media/Partition_Commune/Mes documents/Ordi/LaTex/Sweave' > ***** Sweave.sh ?ld '\example1Leisch.Rnw' > ***** > Run Sweave and postprocess with LaTeX directly from command line > ?ld is not a supported file type! > It should be one of: .lyx, .Rnw, .Snw., .nw or .tex Is the instructions false? Or do I do something wrong? Thank you much for your help!!
2004 Jan 08
2
Sweave & xtable
...er a # or % was the appropriate comment character). I have successfully incorporated simple graphics and outputs, but am having trouble getting a latex (xtable) table to function properly. Latex is seemingly treating the xtable code as input or verbatim text. That is, if I run Sweave('myfile.Snw', echo=T) I get the latex syntax xtable code handed to me twice in the myfile.dvi. Turning echo off, I get the xtable code (not the nicely formated latex table) back in the dvi. There seems nothing wrong with the myfile.tex file itself. (I attach a snip below). Everything run fine if I manu...
2007 Mar 07
1
Sweave issue: quotes in verbatim-like output print incorrectly
Hi all I love Sweave; use it all the time. But I recently received a new computer, and ever since I have had a problem I've never seen before. For example, I place the following in my Snw file: <<>>= sms <- read.table("http://www.sci.usq.edu.au/staff/dunn/Datasets/applications/popular/smsspeed.dat", header=TRUE) attach(sms) sms.lm <- lm( Time ~ Age*Phone, subset=(Age>30) ) summary(sms.lm) @ Standard stuff. The output appears in the corresponding...
2003 Apr 30
2
Working comfortably with (X)Emacs + Sweave
Dear List, I am trying to become more familiar with Sweave at the moment, beacuse I am convinced that it will eventually make my life easier. However, I have not found anything relevant in the mail archives about the following problem. Both the article in R-News and the Sweave FAQ suggest that Emacs would be a great development environment for working with Sweave. So far, it doesn't seem to