Displaying 20 results from an estimated 200 matches similar to: "embed Sweave driver in .Rnw file"
2011 Jun 20
1
Quote the path of graphics output in Sweave when it contains spaces
Hi,
I'm aware of the definition of a "valid filename" in
.SweaveValidFilenameRegexp, but I think it might be better to quote
the filename when it contains spaces instead of just giving a warning.
This should bring us safer LaTeX code (although I never use spaces in
paths).
Here is the simple patch:
Index: src/library/utils/R/SweaveDrivers.R
2011 Sep 22
4
How to turn a LaTeX Sweave file (Rnw) into .HTML/.odf/.docx? (under windows)
Hello dear R help members,
I have found several references on how to do this, my question is if anyone
is actually using them - and if there are some strong points on what to use,
and how well it is working out.
My goal is to be able to easily create docs from R, but to be able to share
it with other researchers (who do not use LaTeX) so they could easily
copy/paste the tables and edit them for
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents
in the main Sweave document.
How can I do it?
So I was thinking .... to use Latex features :
\newif\ifpaper
\ifpaper
\SweaveInput{"my1.Rnw"}
\else
\SweaveInput{"my2.Rnw"}
\fi
But how do I set paper to true or false given an \Sexpr ??
\papertrue % or
\paperfalse
Any ideas?
cheers
--
Witold
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)
2013 Mar 13
0
sync+Rnw+TeXShop, again
Hi All --
I'm not sure this is the natural place for this question, but this list is
the place with the best Sweave-TeXShop-sync discussion so far.
My problem is that sync+Sweave+TeXShop works sometimes and not others, and
it's not consistent. The failure, in which sync from PDF opens the .tex
file instead of the .Rnw file, always comes after a code chunk.
If I start from a simple
2023 Dec 11
1
Small typo in Sweave.Rnw
In the first paragraph of Sweave.Rnw
(./src/library/utils/vignettes/Sweave.Rnw), it reads
for literate programming \cite{fla:Knuth:1984}.
but probably should be
for literate programming \citep{fla:Knuth:1984}.
^
kind regards
Enrico
--
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net
2012 Jan 24
1
Rnw file generated strange symbols in pdf file
Hello,
I found my Rnw file generated strange symbols in pdf file. For instance, on page 4 of the following file,
http://cran.r-project.org/web/packages/cts/vignettes/kf.pdf
you can see Belcher et~al on line 2, and Figure~1 on line 5. The symbol ~ should not appear in the pdf file although the symbol was in the original Rnw file (something like Figure~\ref{...}, section~\ref{...}). On page 1,
2009 Jun 06
2
Truncated R output in Sweave
Dear Colleagues:
In producing a book or a handout I sometimes cut out a large part of the
printed output of an R function, substituting ... for that chunk.
Deleting non-essential output saves paper. It would be nice to have a
capability in Sweave to allow the user to specify a starting and an
ending regular expression that would identify consecutive lines of
output to replace with ...,
2012 Aug 21
1
patchDVI: how to pass encoding of the .Rnw file?
On 12-08-19 3:47 PM, Marius Hofert wrote:
> Dear Duncan,
>
> I recently asked a question concerning patchDVI on r-help, see
>
> ,----
> | https://stat.ethz.ch/pipermail/r-help/2012-August/321780.html
> `----
>
> Unfortunately, no one could help. I was wondering if you know a solution to the
> above problem. Any hint is highly appreciated.
Sorry, I'm writing this
2009 Oct 06
4
Text editors for Sweave (rnw) files
Hi fellow R-users,
Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them.
Thanks in advance,
Greg
__________________________________________________________________
Make your browsing faster, safer, and
2012 Nov 05
2
Problem compiling Rnw file
Dear R list,
I'm using R 2.15.2 with TeX Live 2009 and ESS 12.09 . I have a R
project in the '/home/r/Documents/myproj/', which is my working
directory (where I have the .Rnw file). Inside the document I have
several "setwd()" to collect the datasets I use.
After I compile from the terminal using "R CMD Sweave myproj.Rnw", I
receive the error:
Error in
2009 Mar 02
2
Fwd: Converting R to Sweave (Rnw)
Hi
I am thinking about using Sweave more frequently, especially for
documenting code. But the syntax is slightly awkward for me (<<name>>=
... @), and I was thinking if there would be a way of importing the
type of code extracted from an Rnw file back into an Rnw file? The
advantage would be that the code could run in R without tangling.
Obviously, sweave options could not be
2013 Jan 09
3
Sweave, Texshop, and sync with included Rnw file
Hello everyone.
I am in the process of writing a book in Latex with Texshop, on Mac.
This book contains a lot of R code, hence the need to use Sweave.
I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw.
My problem now is that the book is divided in Chapters, and every chapter is in its own Rnw file.
I can compile them from the main one (book.Rnw) using the
2008 Nov 29
3
including Sweave tangled code in '.Rnw' document
Hello List,
I have been using Sweave for my homework this last quarter and have been
very impressed at how much time and effort it saves me. I, however, have
run up against a problem which I have not been able to solve using any of
the Sweave/LaTeX tricks I know. I work through my homework one problem at a
time, typesetting equations and writing R code, etc. and occasionally use
2012 May 21
2
sweave tables as images?
Hello folks,
I've been on a journey trying to figure out how to manage documents that
are amenable to sharing and editing, but that contain dynamic content
generated by R. I've come to the following solution: I use Sweave to
generate labeled png & pdf figures, and I "Insert & Link" those figures
as "Pictures" in a Word 2010 doc. Thus, when data or code
2006 Jun 22
2
Embed a Rails app within another?
I''m looking for a solution where I could load and render pages from one
Rails application within another. I''m looking through the Rails code
right now to see if this would even be remotely possible. Does anyone
have any ideas?
I know the obvious answer would be to proxy the app via Net::HTTP, but
this is undesirable because:
- I don''t always want to depend on having
2006 May 07
1
Best way to embed dynamic content....
Sorry for the newbie question here....
I''ve got a project that might be just right for RoR and to help me learn
about it more. It''s a travel site, with some admin / user functionality
that pretty much matches up with the agile dev with rails book and
tutorials. The only part that I''m not sure the best way to do is they
want to embed some dynamic areas within the
2011 Mar 03
1
embed latex beamer sans serif default font into R plot
Hello,
I have seen instructions on how to embed Latex Computer Modern fonts into R, but these are the default serif fonts. I am trying to embed the default font used for Latex beamer (theme Warsaw), which is a sans serif font and may be the default LateX Computer Modern sans serif font. Does anyone know the names of the font files?
Thanks
Heemun
2009 Jan 31
0
embed in webpage
Hi all,
I want to use R to provide participants in psychology experiments with
their scores on various measures. I looked around and found several
programs designed to do this. I settled on Rpad because it seemed easy
to set up and use. I have it working (see
http://realpsychresearch.org/blog/feedback-web-based-studies ), but
there is a problem. I need to select the data corresponding to the
2003 Mar 04
0
Recall: Embed R in other applications
Pfaff, Bernhard would like to recall the message, "[R] Embed R in other
applications".
----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.