All Projects → tjmahr → Wraprmd

tjmahr / Wraprmd

Licence: other
RStudio addin for wrapping RMarkdown paragraphs

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Wraprmd

Jupytext
Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
Stars: ✭ 4,969 (+5611.49%)
Mutual labels:  rmarkdown, knitr, rstudio
reportfactory
Lightweight infrastructure to handle multiple rmarkdown reports
Stars: ✭ 68 (-21.84%)
Mutual labels:  rmarkdown, knitr
learning R
List of resources for learning R
Stars: ✭ 32 (-63.22%)
Mutual labels:  rstudio, rmarkdown
Kableextra
Construct Complex Table with knitr::kable() + pipe.
Stars: ✭ 465 (+434.48%)
Mutual labels:  rmarkdown, knitr
uiucthemes
RMarkdown Templates for UIUC Theme-Oriented Documents
Stars: ✭ 45 (-48.28%)
Mutual labels:  rstudio, rmarkdown
armcompanion
Companion materials for the rstudio::conf 2019 Advanced R Markdown workshop
Stars: ✭ 15 (-82.76%)
Mutual labels:  rstudio, rmarkdown
Summarytools
R Package to Quickly and Neatly Summarize Data
Stars: ✭ 390 (+348.28%)
Mutual labels:  rmarkdown, rstudio
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+7820.69%)
Mutual labels:  rstudio, rmarkdown
Rmdformats
HTML output formats for RMarkdown documents
Stars: ✭ 492 (+465.52%)
Mutual labels:  rmarkdown, rstudio
Posterdown
Use RMarkdown to generate PDF Conference Posters via HTML
Stars: ✭ 602 (+591.95%)
Mutual labels:  rmarkdown, rstudio
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+6903.45%)
Mutual labels:  rstudio, rmarkdown
xaringan slides
📺 Links to HTML5 presentations made using the R package {xaringan}.
Stars: ✭ 20 (-77.01%)
Mutual labels:  rmarkdown, knitr
youngmetro
R Markdown Beamer Theme Based on sthlm, HSRM, and Metropolis themes
Stars: ✭ 14 (-83.91%)
Mutual labels:  rstudio, rmarkdown
rmdTemplates
Rmarkdown templates for reproducible science
Stars: ✭ 112 (+28.74%)
Mutual labels:  rstudio, rmarkdown
epoxy
Extra-strength glue engines for R Markdown and Quarto
Stars: ✭ 141 (+62.07%)
Mutual labels:  rmarkdown, knitr
Rmarkdown Cookbook
R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
Stars: ✭ 324 (+272.41%)
Mutual labels:  rmarkdown, knitr
reportmd
Create multi-page HTML reports in R
Stars: ✭ 23 (-73.56%)
Mutual labels:  rstudio, rmarkdown
r-novice-inflammation
Programming with R
Stars: ✭ 142 (+63.22%)
Mutual labels:  rmarkdown, knitr
Xaringan
Presentation Ninja 幻灯忍者 · 写轮眼
Stars: ✭ 1,129 (+1197.7%)
Mutual labels:  rmarkdown, rstudio
Knitrhooks
Extend {knitr} with hooks
Stars: ✭ 32 (-63.22%)
Mutual labels:  rmarkdown, knitr

WrapRmd

Travis-CI Build Status

An RStudio Addin to wrap paragraphs of RMarkdown text without inserting line breaks into inline R code.

Installation

You can install the plain version WrapRmd from GitHub with:

# install.packages("devtools")
devtools::install_github("tjmahr/WrapRmd")

This package used the commonmark package to wrap and reformat to markdown text. Using commonmark means that it can wrap links and markdown lists. The package does some additional work to handle inline R Markdown.

Overview

Here is some nice looking RMarkdown:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a `r max(iris$Sepal.Length)`, viverra nisl at, luctus ante = `r length(letters) * 2 + 100`.

You highlight the text, and hit Ctrl/Cmd + Shift + / to wrap the text and get:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a `r
max(iris$Sepal.Length)`, viverra nisl at, luctus ante = `r length(letters) * 2 +
100`.

This RStudio Addin wraps text, but doesn't insert line breaks into inline R code, yielding:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
a `r max(iris$Sepal.Length)`, viverra nisl at, luctus ante =
`r length(letters) * 2 + 100`.

An animation of the above

Notes

Then go to Tools > Addins in RStudio to select and configure addins. I've mapped this one addin to the shortcut Ctrl + Shift + Alt + /.

The package wraps lines using a maximum width set by options("WrapRmd.width") which currently defaults to 80 characters.

It should work on multiple paragraphs:

Animation of wrapping paragraphs separately

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].