Manage Branding and Accessibility of R Projects
Overview
A tool for building projects that are visually consistent, accessible, and easy to maintain. It provides functions for managing branding assets, applying organization-wide themes using 'brand.yml', and setting up new projects with accessibility features and correct branding. It supports 'quarto', 'shiny', and 'rmarkdown' projects, and integrates with 'ggplot2'. The accessibility features are based on the Web Content Accessibility Guidelines https://www.w3.org/WAI/WCAG22/quickref/?versions=2.1 and Accessible Rich Internet Applications (ARIA) specifications https://www.w3.org/WAI/ARIA/apg/. The branding framework implements the 'brand.yml' specification https://posit-dev.github.io/brand-yml/.
Install
Health
ERRORexamplesr-release-macos-arm64, r-release-macos-x86_64
r-release-macos-arm64
Running examples in ‘rbranding-Ex.R’ failed
The error most likely occurred in:
> ### Name: brand_add_logo
> ### Title: Add Brand Logo to ggplot2 Plot
> ### Aliases: brand_add_logo
>
> ### ** Examples
>
> {
+ # First set the brand theme to load configuration
+ old_wd <- getwd()
+ setwd(tempdir()) # Change to temp directory for example
+ brand_init()
+ get_brand_public()
+ get_template("blank")
+ brand_set_ggplot()
+
+ # Create a plot and add logo
+ library(ggplot2)
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+ geom_point() +
+ labs(title = "Example Plot") +
+ brand_add_logo()
+
+ # Customize logo position and size
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+ geom_point() +
+ labs(title = "Example Plot") +
+ brand_add_logo(x = 0.1, y = 0.9, size = 0.08)
+
+ setwd(old_wd) # Restore original working directory
+ }
Created files './rbranding_config.yml' and placeholder '_brand.yml' in current working directory
Checking remote version...
Local branding file overwritten with remote file
Copied blank.txt to /Volumes/Temp/tmp/RtmpKtwRFh
Copied icon.png to /Volumes/Temp/tmp/RtmpKtwRFh
Copied logo.png to /Volumes/Temp/tmp/RtmpKtwRFh
Brand theme applied successfully!
Error in brand_add_logo() :
No logo information found in brand configuration.
Execution haltedr-release-macos-x86_64
Running examples in ‘rbranding-Ex.R’ failed
The error most likely occurred in:
> ### Name: brand_add_logo
> ### Title: Add Brand Logo to ggplot2 Plot
> ### Aliases: brand_add_logo
>
> ### ** Examples
>
> {
+ # First set the brand theme to load configuration
+ old_wd <- getwd()
+ setwd(tempdir()) # Change to temp directory for example
+ brand_init()
+ get_brand_public()
+ get_template("blank")
+ brand_set_ggplot()
+
+ # Create a plot and add logo
+ library(ggplot2)
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+ geom_point() +
+ labs(title = "Example Plot") +
+ brand_add_logo()
+
+ # Customize logo position and size
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+ geom_point() +
+ labs(title = "Example Plot") +
+ brand_add_logo(x = 0.1, y = 0.9, size = 0.08)
+
+ setwd(old_wd) # Restore original working directory
+ }
Created files './rbranding_config.yml' and placeholder '_brand.yml' in current working directory
Checking remote version...
Local branding file overwritten with remote file
Copied blank.txt to /Volumes/Temp/tmp/Rtmpc6pDgQ
Copied icon.png to /Volumes/Temp/tmp/Rtmpc6pDgQ
Copied logo.png to /Volumes/Temp/tmp/Rtmpc6pDgQ
Brand theme applied successfully!
Error in brand_add_logo() :
No logo information found in brand configuration.
Execution haltedERRORtestsr-release-macos-arm64, r-release-macos-x86_64
r-release-macos-arm64
Running ‘tinytest.R’ [1s/1s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if (requireNamespace("tinytest", quietly = TRUE)) {
+ tinytest::test_package("rbranding")
+ }
test_brand_init.R............. 0 tests
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 2 tests OK
test_brand_init.R............. 3 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 5 tests OK
test_brand_init.R............. 6 tests OK
test_brand_init.R............. 6 tests OK
test_brand_init.R............. 7 tests OK
test_brand_init.R............
...[truncated]...
tests Brand theme applied successfully!
test_ggplot2.R................ 1 tests OK
test_ggplot2.R................ 1 tests OK
test_ggplot2.R................ 2 tests OK ggplot2 theme reset to previous state.
test_ggplot2.R................ 3 tests OK
test_ggplot2.R................ 4 tests OK Brand theme applied successfully!
test_ggplot2.R................ 4 tests OK
test_ggplot2.R................ 5 tests OK ggplot2 theme reset to previous state.
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 6 tests OK
test_ggplot2.R................ 6 tests OK
test_ggplot2.R................ 6 tests OK 0.4s
----- FAILED[data]: test_get_brand.R<15--15>
call| expect_equal("rbranding", brand_contents_1$meta$name)
diff| Expected 'ForeSITE', got 'rbranding'
Error: 1 out of 25 tests failed
Execution haltedr-release-macos-x86_64
Running ‘tinytest.R’ [2s/3s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
> if (requireNamespace("tinytest", quietly = TRUE)) {
+ tinytest::test_package("rbranding")
+ }
test_brand_init.R............. 0 tests
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 1 tests OK
test_brand_init.R............. 2 tests OK
test_brand_init.R............. 3 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 4 tests OK
test_brand_init.R............. 5 tests OK
test_brand_init.R............. 6 tests OK
test_brand_init.R............. 6 tests OK
test_brand_init.R............. 7 tests OK
test_brand_init.R............
...[truncated]...
tests Brand theme applied successfully!
test_ggplot2.R................ 1 tests OK
test_ggplot2.R................ 1 tests OK
test_ggplot2.R................ 2 tests OK ggplot2 theme reset to previous state.
test_ggplot2.R................ 3 tests OK
test_ggplot2.R................ 4 tests OK Brand theme applied successfully!
test_ggplot2.R................ 4 tests OK
test_ggplot2.R................ 5 tests OK ggplot2 theme reset to previous state.
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 5 tests OK
test_ggplot2.R................ 6 tests OK
test_ggplot2.R................ 6 tests OK
test_ggplot2.R................ 6 tests OK 1.3s
----- FAILED[data]: test_get_brand.R<15--15>
call| expect_equal("rbranding", brand_contents_1$meta$name)
diff| Expected 'ForeSITE', got 'rbranding'
Error: 1 out of 25 tests failed
Execution halted- ERROR11 OK, 2 ERRORNow
- ERROR11 OK, 3 ERROR2026-04-09
- OK14 OK2026-03-29
- ERROR13 OK, 1 ERROR2026-03-17
- OK14 OK2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 100%7 run in a plain check (3 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/epiforesite/rbranding on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-03 · The repository has a site deploy workflow
pkgdown site last built 2026-10-03
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-08-21Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own accountCommits: 10 by its own account
- Claude Codefirst seen 2025-10-20Named in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 2 crediting it in the message
- Copilot code reviewCommits: at least 1 accepting its review suggestions
- Claude Opus 5.51 commit · Sep 2026
- Claude Sonnet 5.51 commit · Sep 2026
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.1Latest
- 0.1.02025-11-21
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-11-21
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rbranding")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.