R documentation with pkgdown, roxygen2, rmarkdown. Use for package websites and documentation.
Scanned 6/4/2026
Install via CLI
openskills install LeoLin990405/r-analytics-skill---
name: r-dev-docs
description: R documentation with pkgdown, roxygen2, rmarkdown. Use for package websites and documentation.
---
# R Documentation
Package documentation and websites.
## pkgdown
```r
library(pkgdown)
# Build site
build_site()
# Components
build_home()
build_reference()
build_articles()
build_news()
# Preview
preview_site()
```
## _pkgdown.yml
```yaml
url: https://mypackage.github.io/mypackage
template:
bootstrap: 5
bootswatch: flatly
navbar:
structure:
left: [intro, reference, articles]
right: [search, github]
components:
articles:
text: Articles
menu:
- text: Getting Started
href: articles/intro.html
- text: Advanced Usage
href: articles/advanced.html
reference:
- title: Data Manipulation
contents:
- filter_data
- transform_data
- title: Visualization
contents:
- starts_with("plot_")
articles:
- title: Tutorials
navbar: ~
contents:
- intro
- advanced
```
## Vignettes
```r
# Create vignette
usethis::use_vignette("intro")
# Vignette header
---
title: "Introduction to mypackage"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Introduction to mypackage}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```
## roxygen2 Tags
```r
#' @title Function Title
#' @description Detailed description
#' @details Additional details
#' @param x Parameter description
#' @return Return value description
#' @export
#' @examples
#' \dontrun{
#' slow_example()
#' }
#' @family related functions
#' @seealso \code{\link{other_function}}
#' @references Paper citation
#' @keywords internal
#' @noRd
```
## README.Rmd
```r
# Create
usethis::use_readme_rmd()
# Build
devtools::build_readme()
# Badge examples
[](https://github.com/user/repo/actions)
[](https://codecov.io/gh/user/repo)
```
No comments yet. Be the first to comment!
This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.
Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...
Get current weather and forecasts (no API key required).
Focused Signals scout for PostHog projects using revenue analytics. Watches the derived revenue product for upstream failures (Stripe sync stalls, capture regressions), config drift (missing subscription property, currency mix surprises, broken Stripe↔person joins, deferred-revenue gaps), and goal-miss escalations. Emits findings only when they clear the confidence bar; otherwise writes durable memory and closes out empty. Self-contained peer in the signals-scout-* fleet — no dependencies on ...
Focused Signals scout for finding observability gaps in PostHog itself — significant event volumes the team isn't tracking, custom events with no insight or dashboard coverage, insights pointing at events that have stopped firing, dashboards missing related context, critical events with no alerts. Watches the event-stream-vs-saved- inventory delta as the team's product evolves and emits findings recommending new insights, dashboard additions, or alerts when gaps clear the confidence bar. Self...