Skip to content
Back to skills

R Web Reports

ASecurity

R reproducible reports with rmarkdown, knitr, quarto. Use for dynamic documents, presentations, and books.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
datagogit

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill r-web-reports --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of R Web Reports?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for R Web Reports
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-r-web-reports/badge)](https://www.skillsdirectory.com/skills/leolin990405-r-web-reports)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: r-web-reports
description: R reproducible reports with rmarkdown, knitr, quarto. Use for dynamic documents, presentations, and books.
---

# R Reproducible Reports

Dynamic documents and reports.

## R Markdown

```yaml
---
title: "Report"
author: "Name"
date: "`r Sys.Date()`"
output:
  html_document:
    toc: true
    toc_float: true
    theme: cosmo
    code_folding: hide
---
```

```r
# Code chunk
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE)
library(tidyverse)
```

```{r analysis}
summary(mtcars)
```

```{r plot, fig.width=10, fig.height=6}
ggplot(mtcars, aes(mpg, hp)) + geom_point()
```
```

## Output Formats

```yaml
# HTML
output: html_document

# PDF (requires LaTeX)
output: pdf_document

# Word
output: word_document

# Presentation
output:
  ioslides_presentation: default
  slidy_presentation: default
  beamer_presentation: default

# Dashboard
output: flexdashboard::flex_dashboard
```

## Quarto

```yaml
---
title: "Report"
format:
  html:
    toc: true
    code-fold: true
  pdf:
    documentclass: article
execute:
  echo: true
  warning: false
---
```

```r
# Quarto code chunk
```{r}
#| label: fig-plot
#| fig-cap: "My Plot"
#| fig-width: 10
ggplot(mtcars, aes(mpg, hp)) + geom_point()
```
```

## Tables

```r
# kable
library(knitr)
kable(head(df), format = "html")

# kableExtra
library(kableExtra)
kable(df) %>%
  kable_styling(bootstrap_options = c("striped", "hover")) %>%
  column_spec(1, bold = TRUE)

# gt
library(gt)
gt(df) %>%
  tab_header(title = "Table Title") %>%
  fmt_number(columns = value, decimals = 2)

# DT (interactive)
library(DT)
datatable(df, filter = "top")
```

## Parameterized Reports

```yaml
---
title: "Report"
params:
  year: 2024
  category: "A"
output: html_document
---
```

```r
# Use parameters
df %>% filter(year == params$year, category == params$category)

# Render with parameters
rmarkdown::render("report.Rmd", params = list(year = 2024, category = "B"))
```

## bookdown

```yaml
# _bookdown.yml
book_filename: "mybook"
output_dir: "docs"
rmd_files: ["index.Rmd", "chapter1.Rmd", "chapter2.Rmd"]

# _output.yml
bookdown::gitbook:
  css: style.css
bookdown::pdf_book:
  includes:
    in_header: preamble.tex
```

## targets (Pipelines)

```r
# _targets.R
library(targets)

list(
  tar_target(data, read_csv("data.csv")),
  tar_target(model, lm(y ~ x, data = data)),
  tar_target(report, {
    rmarkdown::render("report.Rmd")
    "report.html"
  })
)

# Run
tar_make()
tar_read(model)
```

Files in this skill

  • SKILL.md2.5 KB
  • blogdown/SKILL.md1.8 KB
  • bookdown/SKILL.md1.5 KB
  • flextable/SKILL.md3.8 KB
  • gt/SKILL.md2 KB
  • knitr/SKILL.md1.5 KB
  • officer/SKILL.md3.6 KB
  • quarto/SKILL.md1.4 KB
  • rmarkdown/SKILL.md1.6 KB
  • slidify/SKILL.md1.8 KB
  • targets/SKILL.md3.7 KB
  • tinytex/SKILL.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.