knitr   422

« earlier    

R Markdown: The Definitive Guide
A less well-known fact about R Markdown is that many other languages are also supported, such as Python, Julia, C++, and SQL. The support comes from the knitr package, which has provided a large number of language engines.
markdown  rMarkdown  knitr 
9 weeks ago by Jswindle
R Markdown: The Definitive Guide
A less well-known fact about R Markdown is that many other languages are also supported, such as Python, Julia, C++, and SQL. The support comes from the knitr package, which has provided a large number of language engines.
rmarkdown  knitr 
11 weeks ago by onefewercar
knitr: Use an inline expression in fig.cap chunk option - Stack Overflow
fig.cap is evaluated as an R expression, so instead of using \rinline (and thus having the caption again parsed by knitr), you can just create the caption string in R.

%% begin.rcode fig.cap=paste("x is", x)

but because fig.cap is evaluated before x is created by default, you will need to postpone the evaluation of fig.cap; to do that, you can include a chunk like this in the beginning of your document:

%% begin.rcode setup, include=FALSE
%% opts_knit$set(eval.after = 'fig.cap')
%% end.rcode

It specifies fig.cap to be evaluated after the code chunk is evaluated, i.e. when x is available for you to use in the figure caption. See eval.after in the documentation.

The other way to do this is to create x in a previous chunk, and use fig.cap=paste("x is", x) in the next chunk.
r  markdown  knitr 
september 2018 by jotjotjes
Include Images
```{r out.width = "50%", fig.align = "center", fig.cap = "great shot"}.
knitr::include_graphics("images/fig31_adjust_nodes.png")
```

=================

```{r echo=FALSE, out.width='100%'}
knitr::include_graphics('./cropped-banner_efpt.jpg')
```
rmarkdown  image  knitr  captions 
august 2018 by bikesandbooks
R at the command line -- executable
in the termal:

Rscript.exe -e 'knitr::knit("main.Rmd")'
Rscript.exe -e 'rmarkdown::render("main.Rmd")'
command  line  cli  executable  r  rmd  render  knitr  rmarkdown  from notes
february 2018 by bikesandbooks

« earlier    

related tags

academicpapers  analysis  automation  batch  beamer  bestpractice  blog  cache  captions  child  chunk  chunks  cli  code  command  control  converter  csv  data-importing  data-reading  data-viz  data  deanattali  docx  ea  emacs  encoding  executable  external  externalization  ezknitr  files  folder  foreign-package  generator  handouts  hmisc  how-to  html  ide  image  import  include  ipymd  ipynb  jupyter  kable  latex  line  literate.programming  markdown  my-question  myrcourse  notebook  notebooks  notes  nutshell  openscience  opensource  opinion-survey  org  package  packages  pandoc  parent  pdf  pedagogy  plaintext  podcast  presentations  py  python  r-package  r  rebench  render  rep_research  reproducible.reporting  reproducible.research  reproducible  reproducible_research  reproducibleresearch  research  rlang  rmarkdown  rmd  rnw  rprogramming  rscript  rstats  rstudio  sciprog  scrivener  slides  software-development  spin  sql  style  survey-package  sweave  table  tables  te_proberen  tex  text  tool  tutorial  versioncontrol  web-development  wordpress  working  yihui  yui 

Copy this bookmark:



description:


tags: