Package: cardargus 0.2.2

Andre Leite

cardargus: Generate SVG Information Cards with Embedded Fonts and Badges

Create self-contained SVG information cards with embedded 'Google Fonts', shields-style badges, and custom logos. Cards are fully portable SVG files ideal for dashboards, reports, and web applications. Includes functions to export cards to PNG format and display them in 'R Markdown' and 'Quarto' documents.

Authors:Andre Leite [aut, cre], Hugo Vasconcelos [aut], Diogo Bezerra [aut]

cardargus_0.2.2.tar.gz
cardargus_0.2.2.zip(r-4.7)cardargus_0.2.2.zip(r-4.6)cardargus_0.2.2.zip(r-4.5)
cardargus_0.2.2.tgz(r-4.6-any)cardargus_0.2.2.tgz(r-4.5-any)
cardargus_0.2.2.tar.gz(r-4.7-any)cardargus_0.2.2.tar.gz(r-4.6-any)
cardargus_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
cardargus/json (API)
NEWS

# Install 'cardargus' in R:
install.packages('cardargus', repos = c('https://strategicprojects.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strategicprojects/cardargus/issues

Pkgdown/docs site:https://strategicprojects.github.io

On CRAN:

Conda:

5.21 score 18 scripts 142 downloads 41 exports 21 dependencies

Last updated from:8c4a5ef7fa. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK178
source / vignettesOK275
linux-release-x86_64OK187
macos-release-arm64OK114
macos-oldrel-arm64OK159
windows-develOK146
windows-releaseOK155
windows-oldrelOK161
wasm-releaseOK110

Exports:batch_svg_to_base64_chromebatch_svg_to_pngbatch_svg_to_png_chromecard_to_grobchrome_availablecompress_numbercreate_badgecreate_badge_rowcreate_bottom_logo_rowcreate_logo_rowensure_chromefind_chrome_pathfont_availablefont_cache_dirget_font_cssget_svg_pathicon_buildingicon_constructionicon_houseicon_map_pinicon_moneyinclude_cardinclude_card_pnginstall_fontsis_light_colorlist_bundled_svgslist_fontsload_svg_for_embedregister_cardargus_knitrregister_fontregister_google_fontsave_card_for_knitrsave_svgsetup_fontssvg_cardsvg_to_formatssvg_to_pdf_chromesvg_to_pngsvg_to_png_chromesvg_to_png_with_marginsvgs_dir

Dependencies:base64encclicpp11curldigestfastmapfontBitstreamVerafontLiberationfontquivergdtoolsgluehtmltoolsjsonlitelaterlifecyclemagickmagrittrRcpprlangrsvgsystemfonts

Customizing Cards

Rendered fromcustomization.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-02-28
Started: 2026-01-21

Export and Conversion

Rendered fromexport.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-02-28
Started: 2026-01-21

Font Management

Rendered fromfonts.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-01-21
Started: 2026-01-21

Icons and Logos

Rendered fromicons.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-01-21
Started: 2026-01-21

Introduction to cardargus

Rendered fromcardargus.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-02-28
Started: 2026-01-21

Working with Badges

Rendered frombadges.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-01-21
Started: 2026-01-21

Readme and manuals

Help Manual

Help pageTopics
Batch convert SVGs to PNG base64 using headless Chromebatch_svg_to_base64_chrome
Batch convert multiple SVG cards to PNGbatch_svg_to_png
Batch convert SVGs to PNG files using headless Chromebatch_svg_to_png_chrome
Create a grob for grid/ggplot2card_to_grob
Check if Chrome/Chromium is available for renderingchrome_available
Compress number to abbreviated formatcompress_number
Create an SVG Badgecreate_badge
Create a row of SVG badges with uniform heightcreate_badge_row
Create logo row for bottom-left corner of cardcreate_bottom_logo_row
Create logo row for top-right corner of cardcreate_logo_row
Ensure Chrome is available, downloading if necessaryensure_chrome
Find Chrome executable pathfind_chrome_path
Check if a font is available for embeddingfont_available
Get font cache directoryfont_cache_dir
Get Google Font CSS for embedding in SVGget_font_css
Get path to a bundled SVG fileget_svg_path
Building Icon SVGicon_building
Construction Icon SVGicon_construction
House Icon SVGicon_house
Map Pin Icon SVGicon_map_pin
Dollar/Money Icon SVGicon_money
Display card in knitr/Quarto document (SVG via data URI)include_card
Display card as PNG in knitr/Quarto documentinclude_card_png
Pre-download fonts for offline useinstall_fonts
Check if a color is lightis_light_color
List available bundled SVG fileslist_bundled_svgs
List registered/cached fontslist_fonts
Load and process external SVG file for embeddingload_svg_for_embed
Register cardargus knitr engineregister_cardargus_knitr
Register a local font file for embeddingregister_font
Register Google Font (sysfonts)register_google_font
Save card and return path for knitrsave_card_for_knitr
Save SVG string to file (sanitized + embedded fonts)save_svg
Setup showtext for cardargussetup_fonts
Create an Information Card in SVG Formatsvg_card
Convert SVG to multiple formatssvg_to_formats
Convert SVG to PDF using headless Chromesvg_to_pdf_chrome
Convert SVG to PNGsvg_to_png
Convert SVG to PNG using headless Chromesvg_to_png_chrome
Convert SVG to PNG with optional margin and backgroundsvg_to_png_with_margin
Get the path to package SVGs directorysvgs_dir