similar to: knitr customization

Displaying 20 results from an estimated 300 matches similar to: "knitr customization"

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}}}
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
2011 Jul 13
2
Adding vertical space before and after Sweave chunk
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110714/db3a6d2c/attachment.pl>
2008 Mar 06
1
Sweave and extra line
Hi the list, I am using Sweave. Between the Sinput and the Soutput, there is always an extra line: > 2+2 [1] 4 Is it possible to remove it ? > 2+2 [1] 4 Thanks Christophe
2011 Apr 15
1
Sweave and Slides (Beamer)
I'm posting this for two reasons: one is to see if anyone has a better way of solving the problem or suggestions for improving my existing approach; and the other is to show what I'm currently doing in case anyone else might find it useful. The background is that I've been using Sweave for several years now to produce class notes, and I sometimes include quite a lot of raw R input and
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
2006 Sep 25
3
Best use of LaTeX listings package for pretty printing R code
This is what I have been using. Does anyone have a better way? In particular I would like to see letters in comment strings not stretched so much. Thanks -Frank \documentclass{article} \usepackage{listings,relsize} \lstloadlanguages{R} \newcommand{\lil}[1]{\lstinline|#1|} \begin{document} \lstset{language=R,basicstyle=\smaller,commentstyle=\rmfamily\smaller, showstringspaces=false,%
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:
2002 Nov 13
1
Package documentation and rd.sty
Hi all, I've got a basic question regarding package documentation and rd.sty. I wrote my first own package, and now I would like to place the documentation into the appendix of another LaTex document. Seemingly I cannot simply \usepackage{Rd}, as this will modify the page-settings of my document. Is there a minimum style file which will just define the environments and commands needed for
2013 Dec 13
0
Cambiar opciones knitr en documento latex
Muchas gracias Daniel. Era eso lo que buscaba. El 13/12/2013 14:18, daniel escribió: > Manuel, > Los cambios los puedes hacer desde el chunk > << size = 'LARGE' >> > o lo puedes hacer para todos los chunk cambiando las opciones de éstos dentro de un chunk de código > opts_chunk$set(comment=NA, fig.width=6, fig.height=6, size='Large')), > No
2007 Jan 15
4
How to format R code in LaTex documents
Hi, I am planning on putting some R script in an appendix of a LaTex document. Can anyone recommend me a way of how to format it? Is there a way to keep all line breaks without having to insert \\ in every single line? Thank you! Benjamin
2007 Dec 03
0
scrollbars and dragable
Hello, I am new at script.aculo.us and it seem''s to be a very poverfull animation framework. I need to move a div around on the screen with javascript. So far I see the solution with script.aculo.us is to use a dragable object. Now I have a problem. My div contains scrollbars with css: overflow: auto. When I use the IE6 the scrollbar hangs often :-) My div looks like this: <div
2000 Oct 27
0
R reference card
A student wanted a reference card, so I made the following. Someone might want to fix it up, adapt it, make it into a screen saver, demolish it, or whatever. I will surely do some of those. My version will remain in http://www.psych.upenn.edu/~baron/refcard.pdf Here is the Latex text. The package "hanging.sty" probably will have to come from CTAN. Jon ----------
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 Jun 26
0
Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX
Dear Colleagues: In an attempt to have things like # See page \pageref{this} inside comments in R code chunks I have modified Sweave.sty as below. I have followed fancyvrb's manual with regard to the use of the commandchars argument. But when compiling with LaTeX (using attached test file) I get a LaTeX error (/usr/share/texmf-texlive/tex/latex/ae/t1aett.fd) ! Missing \endcsname
2008 Nov 04
3
getting "small" graphs with Sweave using Rnews.sty
I'm sorry for having to post this, but I can't seem to find any solutions to this, which seems pretty simple, but then again... I've started playing with the example r news project and wanted to start adding some graphs, but replacing: \begin{figure} \vspace*{.1in} \framebox[\textwidth]{\hfill \raisebox{-.45in}{\rule{0in}{1in}} A graph goes here \hfill}
2003 Nov 01
4
Bug with partial IMAP fetches
An HTML attachment was scrubbed... URL: http://procontrol.fi/pipermail/dovecot/attachments/20031031/84fb6a1b/attachment.html -------------- next part -------------- X-UIDL: 61c08992b287bf24b6fff123164620b2 Return-Path: <mreimer@vpop.net> Delivered-To: krista@vpop.net Received: from vpop.net (bilbo.vpop.net [65.103.33.41]) by boromir.vpop.net (Postfix) with ESMTP id 6B7D43A60F6 for
2010 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R: http://www.williams.edu/Registrar/geninfo/faculty.pdf For now, I open the file in Acrobat by hand, then save it "as text" and then use readLines(). That works fine but a) I am concerned that some information may be lost and b) I may be doing this a lot, so I would rather have R grab the information from the pdf file directly. So: is
2013 Jan 21
2
RStudio knitr. toc, error al crear Formulas con LaTex+markdown+knitr
Hola. Pare que RStudio y el paquete markdown no nos terminamos de entender. - Creo un fichero Rmd, con el botón: "Kntr to Html" (ctr+Shift+Y), se pre-visualiza genial: formulas (, highlight_code,...)... todo bien. Pero quiero ponerle un TOC tb, así que como en su día me comento Jose Luis Cañadas en este foro, hago un desde el fichero md que crea la previsualización ("Kntr to
2011 Oct 28
1
xtable with \begin{tabular} and only.contents
I have found that I like having my captions and labels in my latex document rather than having them contained in my xtable output file (I haven't fully gone to sweave yet). I know I can do something like this by using the 'only.contents' argument in xtable. Unfortunately, the only.contents argument also removes the \begin{tabular}{rrrrrr} & \end{tabular} (in the example below) of