Displaying 20 results from an estimated 50000 matches similar to: "Sweave and TexnicCenter"
2007 Sep 09
1
Sweave figure aspect ratio
Hello,
using Sweave, is there any option to preserve the
original aspect ratio of plots generated from R code?
Consider this Sweave chunk:
<<test,echo=F,fig=T,width=2,height=2>>=
x <- 1:10
y <- sin(x)
par(mar=c(4,4,0,4))
plot(x,y,
xlab="x label",
ylab="y label"
)
@
In Latex, I want to produce a plot of width 2 but
don't care about the
2008 Mar 28
1
Sweave - print \n ?
Hi,
this is probably quite stupid but I have no clue
what's wrong. Let's say I write the function
hline <- function() {
cat("\\hline \n")
}
and call hline() from within a Sweave chunk. Why is
there no carriage return after the \hline in the
resulting tex file?
if I call hline() hline() in the chunk, then I get
\hline \hline
in the tex code without a linebreak in
2007 Aug 22
1
Processing Sweave documents without Sweave
Hi,
I am very intrigued by the idea of integrating
statistical analysis directly with a paper as Sweave
does it. But as I am collaborating with several people
and they won't have set up R and also they're very
unlikely interested in learning it, I am concerned
about how such an Latex/Sweave document will work on
their side.
Can they Latex-compile the document without having R /
Sweave
2008 Mar 19
4
Sweave does not parse \Sexpr{}
Hi,
has anybody encountered and solved the following
problem?
I continued work now on a different computer where I
have also used Sweave successfully before. I can run
Sweave() and it generates a .tex file. All code chunks
are processed and translated to Latex perfectly fine
but somehow only the \Sexpr{} tags are not parsed.
This is an example .Rnw:
\documentclass{article}
\usepackage{Sweave}
2007 Apr 27
1
Issues with Sweave and inclusion of graphics from nlme
Dear all,
I'm using the nlme package. I would like to introduce the plot of my
groupedData object in my latex report using Sweave but it doesn't work.
I have no error message in R (Sweave(my.file_Rnw)) and the plot is
generated in R, but when I want to see the pdf (I'm using TexnicCenter) of
my report, there is an error message and no pdf file is generated. It seems
that the plot
2010 Nov 30
2
Print to console from within Sweave script
Hi,
is it possible to send some message to the console from within a .Rnw Sweave
script, ie. when executing Sweave()?
The background is that only in particular circumstances my script is doing some
lengthy computations and I would like to print some status information to the
console. It seems Sweave redirects all output though.
Any suggestions?
Thanks a lot for considering my question.
All
2010 Feb 20
3
LaTeX/R/Sweave Problems
Dear All:
For a few days now I have struggled with recreating a stable LaTeX/R/Sweave
environment on a new Windows XP SP3 machine. Unfortunately it seems that I
ran out of good ideas and I would like your expert opinion on how I should
approach this task and be successful. In essence, I installed (several
times) in this order the following: R2.10.1 (and then R 2.9.2), Adobe
Acrobat Reader 9
2008 Feb 26
2
Custom LaTeX tables
Hello,
I am very happy that I have Sweave and R to write my
papers. But I still have to do some tables by hand
since I have not found out how I can customize the
latex tables produced by R further (I mainly use
xtable()). Like for instance, I have a table which
needs an extra row every few rows as a group header
and sometimes I want some extra horizontal lines in
the table and also a multicolumn
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
R users,
I'm at a loss with a problem considering running .tex files produced
by Sweave. When I run (R 2.7.0):
---------------------------------------------------
#Taken from ?Sweave
testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils")
## enforce par(ask=FALSE)
options(device.ask.default=FALSE)
## create a LaTeX file
Sweave(testfile)
2009 Apr 14
1
using Sweave, how to save a plot in a given size
Hi,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
When I use
2012 Feb 15
1
LaTeX and Sweave on windows
I am completely new to LaTeX and Sweave, so I am trying to follow the
tutorial in the following link:
http://www.r-bloggers.com/using-latex-r-and-sweave-to-create-reports-in-
windows/
I installed MiKTeX 2.9 and TeXnicCenter, but I get a build error when
compiler the example file:
The two errors are: "Error: running 'texi2dvi' on 'test.tex' failed" and
"R> !
2009 Apr 14
1
using Sweave, how to save a plot in a given size
Hi there,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
The issue is
2003 Dec 21
3
Sweave/LaTeX Problem with EPS PDF
Dear List:
I am unsure if my problem is with Sweave or LaTeX. Anyhow, I am using the MikTeX distribution and TexnicCenter.
I can easily create Sweave files and all goes well until I try to incorporate graphics. I use the same code as found in the examples found in the users manual.
In R, the graphics I want are created as Sweave is creating the .tex file. When I examine the .tex file
2009 Apr 10
0
Sweave, how to save plots with a defined size and how to include several pdf pages on the same line
Hi there,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots with a given size. How can I do that ? The issue is that I have several plots created (but it's not always the same numbers of plots, in depends on the data), so I save them in a .pdf file automatically with Latex. Each plot is on one page of the
2006 Nov 23
2
Sweave question
I try Sweave
and get Sweave-test-1.tex
but hot to run LaTeX on 'Sweave-test-1.tex'?
I am using WinEdt.
thanks,
Aimin
> Sweave(testfile)
Writing to file Sweave-test-1.tex
Processing code chunks ...
1 : 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
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:
2010 Sep 11
2
How to comment out entire code parts in Sweave files
Hi,
I am wondering if there is any convenient way to comment out an entire region of
a Sweave file which comprises R and Latex code. Currently I'm doing it for the R
and Latex parts separately or transfer the unwanted part into a different file.
But both are not great solutions. (I am doing this when updating old files and
debugging)
Is there a way to do this with an equivalent of
2011 Mar 21
1
Sweave, white space and code blocks
Sweave 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
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
@
2007 Jun 28
4
Sweave bug? when writing figures / deleting variable in chunk
I have found a quite strange (to me) behaviour in Sweave. It only
occurs in the following situation:
1. define a variable in one chunk
2. use it within a subsequent figure-generating chunk
3. delete it at the end of that same chunk
Then the Sweave driver chokes, not finding the variable name when
generating the figure
Example:
% document bug2.Rnw
\documentclass{article}
\usepackage{Sweave}