search for: opts_chunk

Displaying 18 results from an estimated 18 matches for "opts_chunk".

2013 Mar 26
1
Execution halted when I use knitr and Rscript with opts_chunk
...a .pdf. To knit my file, I'm using the command Rscript -e "library(knitr); knit('file.rnw', encoding='utf8')" and everything works fine. However, I don't want the ## characters in my final document. I tested, using R prompt, the following commands library(knitr) opts_chunk$set(comment=NA) knit('file.rnw', encoding='utf8') and they give me exactly what I want: the document without comments in the R commands output. But if I try to run Rscript -e "library(knitr); opts_chunk$set(comment=NA); knit('livro.rnw', encoding='utf8')"...
2017 Sep 06
4
post_processor in rmarkdown not working
...quot;\\maketitle", text[(end_first_page + 1):length(text)] ) writeLines(enc2utf8(text), output_file, useBytes = TRUE) } output_file } output_format( knitr = knitr_options( opts_knit = list( width = 60, concordance = TRUE ), opts_chunk = opts_chunk, knit_hooks = knit_hooks ), pandoc = pandoc_options( to = "latex", latex_engine = "xelatex", args = args, keep_tex = keep_tex ), post_processor = post_processor, clean_supporting = !keep_tex ) ir. Thierry Onkeli...
2017 Sep 07
0
post_processor in rmarkdown not working
...(text)] > ) > writeLines(enc2utf8(text), output_file, useBytes = TRUE) > } > output_file > } > > output_format( > knitr = knitr_options( > opts_knit = list( > width = 60, > concordance = TRUE > ), > opts_chunk = opts_chunk, > knit_hooks = knit_hooks > ), > pandoc = pandoc_options( > to = "latex", > latex_engine = "xelatex", > args = args, > keep_tex = keep_tex > ), > post_processor = post_processor, > clea...
2017 Sep 07
0
post_processor in rmarkdown not working
...) > writeLines(enc2utf8(text), output_file, useBytes = TRUE) > } > output_file > } > > output_format( > knitr = knitr_options( > opts_knit = list( > width = 60, > concordance = TRUE > ), > opts_chunk = opts_chunk, > knit_hooks = knit_hooks > ), > pandoc = pandoc_options( > to = "latex", > latex_engine = "xelatex", > args = args, > keep_tex = keep_tex > ), > post_processor = post_processor, >...
2017 Sep 07
3
post_processor in rmarkdown not working
...xt), output_file, useBytes = TRUE) >> } >> output_file >> } >> >> output_format( >> knitr = knitr_options( >> opts_knit = list( >> width = 60, >> concordance = TRUE >> ), >> opts_chunk = opts_chunk, >> knit_hooks = knit_hooks >> ), >> pandoc = pandoc_options( >> to = "latex", >> latex_engine = "xelatex", >> args = args, >> keep_tex = keep_tex >> ), >> p...
2013 Jun 19
2
knitr without R studio
...<#location1> Graph 2 <#location2> </p> ```{r table1, comment=NA, results='asis'} library(xtable) data(iris) print(xtable(head(iris, 10)), type = "html", include.rownames = T) ``` ```{r, include=FALSE} opts_knit$set(progress = TRUE, verbose = TRUE) opts_chunk$set(fig.width=20, fig.height=12) knit_hooks$set(fig.bg = function(before, options, envir) { if (before) par(bg = options$fig.bg) }) ``` ```{r graphs,fig.keep=?last?} for (x in 1:10) plot(rnorm(100), col = x) ``` ```{r graph1} plot(rnorm(500), type="lines", main="Gra...
2013 Dec 13
0
Cambiar opciones knitr en documento latex
...ias 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 dejes espacios o escribas las opciones en más de una línea, > Al usar opts_chunk SweaveOpts{} no será reconocido (lo que no es malo per se) > La lista de tamaños la puedes encontrar en ?highligth size = c("norm...
2016 Sep 08
3
¿Cómo generar tabla apaisada salida PDF con RMarkdown?
...er. Intenté conseguirlo usando 'xtable' con un código que encontré por ahí. Pongo seguido un ejemplo para poner en un documento Rmd --- title: "Tablas que no entran" author: "Sandia Urlia" date: "" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ```{r} la.tabla.ancha <- cars[c(1:10),rep(1,14)] knitr::kable(la.tabla.ancha, caption = "La tablaza") ``` ```{r results='asis'} options(xtable.comment = FALSE) print( xtable::xtable( la.tabla.ancha, caption = "La-tablota",...
2017 Sep 07
0
post_processor in rmarkdown not working
...? ? ?} > ? ? ?output_file > ? ?} > > ? ?output_format( > ? ? ?knitr = knitr_options( > ? ? ? ?opts_knit = list( > ? ? ? ? ?width = 60, > ? ? ? ? ?concordance = TRUE > ? ? ? ?), > ? ? ? ?opts_chunk = opts_chunk, > ? ? ? ?knit_hooks = knit_hooks > ? ? ?), > ? ? ?pandoc = pandoc_options( > ? ? ? ?to = "latex", > ? ? ? ?latex_engine = "xelatex", > ? ? ? ?args = args, > ? ? ? ?keep_tex = keep_t...
2017 Sep 07
2
post_processor in rmarkdown not working
...;> ? ?} >> >> ? ?output_format( >> ? ? ?knitr = knitr_options( >> ? ? ? ?opts_knit = list( >> ? ? ? ? ?width = 60, >> ? ? ? ? ?concordance = TRUE >> ? ? ? ?), >> ? ? ? ?opts_chunk = opts_chunk, >> ? ? ? ?knit_hooks = knit_hooks >> ? ? ?), >> ? ? ?pandoc = pandoc_options( >> ? ? ? ?to = "latex", >> ? ? ? ?latex_engine = "xelatex", >> ? ? ? ?args = args, >>...
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
2017 Sep 08
0
post_processor in rmarkdown not working
...; >>> output_format( >>> knitr = knitr_options( >>> opts_knit = list( >>> width = 60, >>> concordance = TRUE >>> ), >>> opts_chunk = opts_chunk, >>> knit_hooks = knit_hooks >>> ), >>> pandoc = pandoc_options( >>> to = "latex", >>> latex_engine = "xelatex", >>>...
2018 Jul 09
2
Parametrized Vignettest in R packages
On 09/07/2018 3:24 PM, Witold E Wolski wrote: > Dear Yihui, > > Thank you for the valuable questions. > > sample_analysis is a "tibble" while > configuration is an "R6" class. > But I also have parametrized reports where I pass R reference classes > as arguments. > > This is the Rmd yaml params part corresponding to the error message. > >
2016 Sep 09
2
¿Cómo generar tabla apaisada salida PDF con RMarkdown?
...ah. Pongo seguido un ejemplo para poner en un documento Rmd > > --- > title: "Tablas que no entran" > author: "Sandia Urlia" > date: "" > output: pdf_document > --- > > ```{r setup, include=FALSE} > knitr::opts_chunk$set(echo = TRUE) > ``` > > > ```{r} > la.tabla.ancha <- cars[c(1:10),rep(1,14)] > knitr::kable(la.tabla.ancha, caption = "La tablaza") > ``` > > > ```{r results='asis'} > options(xtable.comment = FALSE) > print...
2018 Jul 09
0
Parametrized Vignettest in R packages
...ot;myPackage"))) data: !r quote(get(data(sample_analysis, package="myPackage"))) vignette: > %\VignetteIndexEntry{Summarize Peptide Level Measurements} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r setup, include=FALSE} library(tidyverse) knitr::opts_chunk$set(echo = FALSE, message=FALSE) data <- eval(params$data) configuration <- eval(params$configuration) ``` Have a great evening. regards Witek On 9 July 2018 at 21:32, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 09/07/2018 3:24 PM, Witold E Wolski wrote: >> >...
2013 Dec 23
0
ayuda con Knitr
...or. >> >> Por lo pronto, el uso de usepackage{Sweave} te lo puedes ahorrar, Knitr no lo necesita. > o, un primer bloque para configurar las distintas opciones que permite Knitr es bastante aconsejable, algo de este estilo: <>= # Ajuste de las opciones globales de los «chunks» opts_chunk$set( # Opciones para graficos fig.path="Imagenes/", fig.align='center', fig.show='hold', dev='tikz', # No compila las figuras TikZ en PDF external = FALSE, # Opciones para mostrar el código echo = FALSE, # Opciones de cache cache = TRUE, # Opciones de alarmas warni...
2012 May 01
0
knitr + markdown: simplemente útil
...o, extensión `md` mediante: * `pandoc -s --toc fichero.md -o fichero.html` * si se desea puede utilizarse la extensión `.tex` en la salida para un fichero LaTeX, o cualquier otra de las admitidas por `pandoc`: `rtf`, `.odt`, ... # Ejemplo propuesto por Y. Xie ## Preparación `r opts_chunk$set(fig.width=5, fig.height=5, fig.path='')` This is a minimal example of using **knitr** with in HTML pages. I am actually using markdown here since it is more convenient in GitHub. ## Adelante First, the input file was named as `knitr-minimal.Rmd` ([source](https://github.com/yihui/knit...
2013 Dec 23
4
ayuda con documento knitr
Hola, no se si es este el sitio apropiado para mi consulta, pero igual alguien también ha tenido el mismo problema. Estoy preparando un documento con knitr a través de Tinn-R y WinEdt. Todo va bien hasta que quiero mostrar directamente el resultado de una secuencia de código directamente en el documento. Entonces al crear el documento latex me sale el siguiente error: ("C:ARCHIVOS DE