Displaying 20 results from an estimated 200 matches similar to: "Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX"
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
Hello Folks,
When I run the document below through sweave, rgui.exe/rsession.exe
leaves a file handle open to the sweave-001.pdf graphic (as verified by
process explorer). Pdflatex.exe then crashes (with a Permission Denied
error) because the graphic file is locked.
This only seems to happen when there is an error in the sweave document.
When there are no errors, no file handles are left open.
2009 Mar 17
1
Combining Sweave and fancyvrb
I find Sweave very useful and I was trying to combine it with the
latex package fancyvrb. I was trying to get line numbering and labels
in order to reference the lines where particular commands occur.
Unfortunately, I haven't been able to figure out how to do it. Maybe
somebody can help me.
The following is a sample Rnw file: the first part shows what I would
like to get, the second what I
2008 Jul 27
2
Colors in Sweave
Hi list,
I was using Sweave and was wondering if anyone has had any luck changing the font colors of the code chunks. For instance, in my .Rnw preample I tried including:
===
\usepackage[usenames]{colors}
\definecolor{darkred}{rgb}{0.545,0,0}
\definecolor{midnightblue}{rgb}{0.098,0.098,0.439}
\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}}
2011 Mar 07
2
Sweave with scan()-ed data
In an Sweave slide, I want to use sem::read.moments() and
sem::specify.model(), which work
by using scan() to read the following lines, up to the first blank
line. However, Sweave
throws an error:
> Sweave("sem-thurstone.Rnw")
Writing to file sem-thurstone.tex
Processing code chunks ...
1 : term hide (label=arrests-setup)
2 : echo term hide (label=thurstone-data)
Error:
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
Hello,
I'm trying to put a dynamic table and a dynamic graph side by side in a pdf
document using Sweave.
The data.frame used to generate the table is called rg (rg.txt):
"Date"; "Code"; "Data1"; "Data2"
"2009-03-10";"1";1958;147
"2009-03-10";"2";302;144
"2009-03-10";"3";4;141
2004 Feb 19
1
latex problem with Sweave output file under Debian
Could someone tell me how to end the trouble I'm encountering when
running latex on the .tex file produced by Sweave()? Sweave() seems to
process the example file
(http://www.ci.tuwien.ac.at/~leisch/Sweave/example-1.Snw) without
problems, and the file example-1.tex produced is the same as in the Sweave
manual. However, when I run latex on example-1.tex, many error messages
and requests for
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",
2008 Aug 05
0
patchDVI update: SyncTex support
A while ago I wrote a package called patchDVI, that allowed
"reverse-search" from the YAP .dvi previewer (or others) to jump
directly to the .Rnw source of an Sweave document.
Recently support for reverse search has been integrated into pdflatex
(through SyncTex). There aren't many PDF previewers on Windows that
support this (only an unreleased version of SumatraPDF, as far as
2009 Jun 28
0
Sweave findings
Dear Group:
After struggling with escape sequences using the LaTeX listings package
(used by the R SweaveListingUtils package), I have come to the
conclusing that listings' interaction with the LaTeX fancyvrb package
prevents escapes such as
plot(x) # See Figure \ref{my.plot}
The only way I could solve the problem in general is to use a Perl
script to pretty-print the R code, and to
2012 May 25
1
knitr customization
I am trying to transition from Sweave to knitr, but there are a few
things about customization of the appearence of R input and output that
I did not get yet. Maybe somebody on the list can help me.
In my Sweave presentations I used a slanted font for the R input and a
normal font for the output, both in a small font. I also indented
everything by an extra 2em. All this was achieved by the
2009 Apr 19
2
Sweave: Changing the background color, adding a border
Hi all,
I am using Sweave to produce a document. Unfortunately, I have to print
several copies and I can't print them in color. So I would like to
change the way of printing the code. I would like to print the code in a
box with a black borderline and a grey background (quite classic). Is it
possible to do it by changing some Schunk options?
Christophe
2005 Mar 18
4
Sweave/margin
Hi!
I am currently using Sweave for writing my bachelor thesis - and I have a
problem:
I am using a LaTeX style (report) with quite big margin spaces. The Sweave
generated LaTeX code "floats" into the margin - and it looks ugly. The text
is blocked and fine... then there comes some flattering code running over
the margin... and blocked text again.
Considering the LaTeX output, I guess
2010 Sep 24
1
tamaño de letra en Sweave
Hola a todos.
Estoy utilizando Sweave para integrar mis análisis en documentos de
latex. Alguien sabe como cambiar el tamaño de letra por defecto para el
código y las salidas de R. Supongo que será especificando algo en el
preámbulo, pero no sé como.
Gracias.
[[alternative HTML version deleted]]
2008 Nov 07
0
Sweave: How to load available colors from pkg 'color'
Hi: Is there a shorter way to color the abstract,sections subsections and page headings of a document. I am using the code below in my preamble to accomplish some of it:
\ifx\pdfoutput\@undefined\usepackage[usenames,dvips]{color}
\else\usepackage[usenames,dvipsnames]{color}
% and fix pdf colour problems
\IfFileExists{pdfcolmk.sty}{\usepackage{pdfcolmk}}{}
\fi
2008 Nov 08
0
Sweave:How to load available colors from pkg 'color'--(Resolved)
Hello: I found a solution to my problem here, I just downloaded mystyle.sty to the same directory where my latex file resides. Then I included \usepackage{mystyle} in my preamble and that took care of coloring any section of the document.
http://www.sci.usq.edu.au/staff/robertsa/LaTeX/ltxfloats.html
Felipe
Is there a shorter way to color the abstract,sections subsections and page headings of a
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
Dear expeRts,
What's a 'good' (nice-looking, easy-to-read) setup for the LaTeX package
'listings' to display R code?
The two versions below are partly inspired by the settings of the package
SweaveListingUtils and
http://r.789695.n4.nabble.com/R-How-to-format-R-code-in-LaTex-documents-td816055.html
Any suggestions, comments, or improvements are welcome.
Cheers,
Marius
###
2009 Apr 16
0
there are fontencoding problem in Sweave
On 4/16/2009 10:29 AM, ?????? n/a wrote:
> I want write article by russian language using Sweave. For cyrillic text
> LaTeX use T2A encoding
>
> \usepackage[T2A]{fontenc}
>
> But in Sweave.sty we find:
>
> \RequirePackage[T1]{fontenc}
>
> It is source of critical problem.
>
> For example Rnw file
>
> $ cat estimation.Rnw
>
>
2009 Apr 16
2
there are fontencoding problem in Sweave
I want write article by russian language using Sweave. For cyrillic text
LaTeX use T2A encoding
\usepackage[T2A]{fontenc}
But in Sweave.sty we find:
\RequirePackage[T1]{fontenc}
It is source of critical problem.
For example Rnw file
$ cat estimation.Rnw
\documentclass[A4paper]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
2013 Jan 29
1
Sweave files generating miktex errors
Dear useRs--
I have been using Sweave with miktex for years, but on a new install on
Windows XP, miktex seems to be hung up on single quotes. See example below.
Digging through stackexchange, I found using \usepackage[noae]{Sweave} in
the tex file solved the problem. My questions are:
--Why would this happen? I have the ae package installed.
--If inserting [noae] is the solution, how do I
2005 Jun 16
1
Sweave and sideways
Hi there,
I'm rying to 'turn' an Schunk in an .Rnw file(Xemacs-21.4.13, ESS-5.2.8,
R-2.1, miktex-2.4.1705).
Has anyone got the isorot package to work with Sweave?
JC
example test.Rnw:
\documentclass[a4paper]{article}
\usepackage{Sweave}
\usepackage{isorot}
\rotdriver{dvips}
\clockwise
\title{Sweave Example 1}
\author{apologies to Friedrich Leisch }
\begin{document}
\maketitle