Skip to content
Back to skills

Rmarkdown

ASecurity

R rmarkdown package for dynamic documents. Use for creating reports, presentations, and documents from R.

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

Security analysis

A100/100

Scanned June 5, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Rmarkdown?

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

Security grade badge for Rmarkdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-rmarkdown/badge)](https://www.skillsdirectory.com/skills/leolin990405-rmarkdown)

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: rmarkdown
description: R rmarkdown package for dynamic documents. Use for creating reports, presentations, and documents from R.
---

# rmarkdown Package

Dynamic documents combining R code and text.

## Document Types

```yaml
---
title: "My Report"
author: "Name"
date: "`r Sys.Date()`"
output: html_document
---
```

```r
# Output formats
output: html_document
output: pdf_document
output: word_document
output: github_document
output: ioslides_presentation
output: slidy_presentation
output: beamer_presentation
```

## Code Chunks

````markdown
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

```{r load-data}
library(tidyverse)
data <- read_csv("data.csv")
```

```{r plot, fig.width=8, fig.height=6}
ggplot(data, aes(x, y)) + geom_point()
```
````

## Chunk Options

```r
# Common options
echo = FALSE      # Hide code
eval = FALSE      # Don't run
include = FALSE   # Run but hide everything
message = FALSE   # Hide messages
warning = FALSE   # Hide warnings
results = "hide"  # Hide output
fig.width = 8     # Figure width
fig.height = 6    # Figure height
cache = TRUE      # Cache results
```

## Inline Code

```markdown
The mean is `r mean(data$x)` and n = `r nrow(data)`.
```

## Parameters

```yaml
---
params:
  year: 2023
  region: "North"
---
```

```r
# Use in document
data %>% filter(year == params$year)

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

## Render

```r
# Single document
rmarkdown::render("report.Rmd")

# With output file
rmarkdown::render("report.Rmd", output_file = "output.html")

# Multiple formats
rmarkdown::render("report.Rmd", output_format = "all")
```

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.