R Under development (unstable) (2026-05-07 r90013 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(bolder) > > options(bolder.width = 63) > > title <- bolder_format_title("data cleaning", "title") > title_lines <- strsplit(title, "\n", fixed = TRUE)[[1]] > > stopifnot( + length(title_lines) == 5, + all(nchar(title_lines, type = "chars") == 63), + grepl("DATA CLEANING", title_lines[[3]], fixed = TRUE) + ) > > subtitle <- bolder_format_title("data cleaning", "subtitle") > subtitle_lines <- strsplit(subtitle, "\n", fixed = TRUE)[[1]] > > stopifnot( + length(subtitle_lines) == 3, + all(nchar(subtitle_lines, type = "chars") == 63), + grepl("DATA CLEANING", subtitle_lines[[2]], fixed = TRUE) + ) > > simple <- bolder_format_title("data cleaning", "simple") > > stopifnot( + nchar(simple, type = "chars") == 63, + startsWith(simple, "# DATA CLEANING ") + ) > > proc.time() user system elapsed 0.10 0.07 0.18