Displaying 20 results from an estimated 8000 matches similar to: "Wish List"
2012 Sep 05
1
Sweave encoding option
Hi list,
I was running Sweave on one of my .rnw file.? Everything was fine, until I came back from the vacation.? Nothing changed (at least to my knowledge), but now I have this problem:
>???? Sweave("myfile.rnw")
Error: ?COLO001final.rnw? is not ASCII and does not declare an encoding
After snooping around on the web, I found this solution:
> Sweave("myfile.rnw",
2007 Dec 10
7
Sweave : change value in rnw file to generate multiple "single" reports ?
Hello,
I'm still trying to make the life of my colleagues easier. Nice, isn't it ?
At the moment, I'm looking for a way to generate multiple "single report".
In fact I have a .rnw file which send a query to a MySQL database
(rs<-dbSendQuery(con, statement="select * from treatdata where
name='Device1'")
But of course my colleagues have many devices and
2007 May 15
1
Rgui open script file selection filter wish
When using the File/Open Script.. dialogue on Windows, the list of filters
offered is
R files (*.R)
S files (*.q,*.ssc,*.S)
All files (*.*)
I wish that an additional filter be offered as
Sweave files (*.Rnw,*.Snw)
I find that the Rgui script editor is adequate for most of my R development
and tend to edit *.Rnw files there.
_
platform
2010 Dec 31
4
Sweave for "big" data analysis
Hi,
Maybe I'm missing the point here...but let's suppose you are working with
"large" data sets and using functions that take a significant amount of time
to run in R. I woulnd't like to run these functions every time I call
Sweave("myfile.Rnw") within R. What is the "common" practice to use Sweave
in these situations. I would just run the function once,
2010 Oct 25
1
Sweave and absolute escaped backslashed Windows paths in R 2.12.0
I've noticed a change in behavior in R 2.12.0 from 2.11.1 regarding the
treatment of absolute paths in the file argument of Sweave in a Windows
environment.
Consider the minimal Rnw file, attached and reproduced below my
signature in case .Rnw files get stripped. This file is stored on my
(Windows) computer in H:/My Documents. Using an absolute path with the
standard window's
2003 Feb 10
0
calling sweave function from LaTex re directories, formatting
System info:
Mandrake 9.0
R Version 1.6.1
ESS 5.1.21
Emacs 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
2012 Feb 02
1
pgfSweave doesn't lazyload my objects
Hi all,
I'm struggling a bit to get pgfSweave to lazyload objects when compiling
a .Rnw file for a second time. Caching works fine except that for every
run all objects get cached again and again. I've used cacheSweave which
works fine; all cached objects from code-chunks with option cache = TRUE
are lazy loaded. I've tried it on two machines ... I'm pretty sure I'm
2010 Apr 26
1
Sweave: centering with echo=TRUE
In a .Rnw file I want to insert the R command
pairs(mydataframe)
and achieve the following effects
1. the command itseld is echoed into the tex document generated by Sweave
<<fig=TRUE,echo=TRUE>>=
2. The graphics generated appears in the tex document, with the graphics
centred.
3. The R command > pairs(mydataframe) is not centered.
Sweave-manual.pdf gives the following code chunk
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")
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
2013 Aug 23
2
packages with Sweave and knitr vignettes?
Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems
to imply that
it is possible to include both Sweave and knitr vignettes in a single
package.
I'm wondering
if anyone has tried this and/or if there are some hidden gotchas putting
this into practice,
and concerned about creating problems with CRAN checks if I try this.
Consider two vignettes:
pkg/vignettes/vign1.Rnw,
2012 Apr 12
1
Encoding of Sweave file error message
Hi
I ran the following sweave file in R2.14.1 and upgraded to R2.15
yesterday with the same setup
I got the following error message when I rand the following Sweave file
> setwd("D:/Cic/Sweave/Parasite/Comb/12")
> Sweave("D:/Cic/Sweave/Parasite/Comb/12/ParasiteComb12.Rnw")
Error: c("'ParasiteComb12DS.Rnw'", "'ParasiteComb12.Rnw'")
2014 Apr 14
2
R 3.1.0: 'R CMD Sweave' deletes non tex files created upon batch mode exit
>>>>> Marc Schwartz <marc_schwartz at me.com>
>>>>> on Sun, 13 Apr 2014 10:22:55 -0500 writes:
[on the R-SIG-Mac mailing list] :
> Hi all,
> With R version 3.1.0 on OSX, using either the Snow Leopard or the Mavericks binary installation on a Mac with fully updated Mavericks, there has been a change in behavior since 3.0.3.
I've just
2012 Aug 16
0
How to call patchDVI::SweavePDF on an .Rnw which is not the master file?
Dear expeRts,
I have a master file master.tex containing the preamble and which inputs (via
\input{chapter01}, \input{chapter02}, ...) chapters. The chapters are .Rnw
files. My goal is to use patchDVI::SweavePDF to compile the chapters (say,
chapter.Rnw) individually (each chapter starts with sourcing Sweave preliminary
settings).
The first problem is the following. If I execute (in the shell)
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
2009 Jan 28
0
Sweave problem with greek text
Dear Sweave and R aficionados,
I am using R and Latex for many years, writing texts in greek. I tried
to combine them with Sweave, but without any success.
Could you provide me with any help?
Usually my LaTeX files are like this iso-8859-7 encoded .tex file:
http://costis.name/0various/lists/R/sweave/successful.greek.tex ,
which happily produces
2014 Nov 03
0
Pkg creation: Sweave: multiple files vignette: Error in R CMD check
Hello R-developers!
I am creating a package (using devtools and RStudio) and I would like to split
my vignette into multiple Rnw-files.
As an example I tried the code from:
https://support.rstudio.com/hc/en-us/articles/200486298
(--> Working with multiple Rnw files)
The Rnw-files work fine with "Complie pdf" in RStudio as well as with
Sweave("Master.Rnw").
But, if I try
2010 May 28
1
Does Sweave run in the global environment ?
Hello
It seems that sweave always runs in the global environment. I want to
run sweave from within a function, and pass a variable into sweave,
however when I do this, sweave doesn't see the variable.
Here's my example test_sweave.Rnw file
|%
\documentclass[a4paper]{article}
\usepackage[OT1]{fontenc}
\usepackage{Sweave}
\begin{document}
\title{Test Sweave Document}
\author{Paul
2012 Apr 14
1
Sweave UFT8 problem
Hi,
I work on MacOS, trying to Sweave an UFT8 document.
AFAI remember R 2.14 used to render a warning when the encoding was not
declared when using Sweave.
With R 2.15 it seems to render an error.
Sweave("sim_pi.Rnw")
Error: 'sim_pi.Rnw' is not ASCII and does not declare an encoding
Declaring an encoding by adding a line like
\usepackage[utf8]{inputenc}
in the preamble does
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
Dear guRus,
I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the "1,2,3" comes from some iteration variable in R?
################################################
\documentclass{article}
\usepackage{Sweave}
\begin{document}