Package: cardargus 0.2.5

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 and PDF formats and display them in 'R Markdown' and 'Quarto' documents.

Authors:Andre Leite [aut, cre], Marcos Wasiliew [aut], Hugo Vasconcelos [aut], Carlos Amorim [aut], Diogo Bezerra [aut]

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

# 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.18 score 1 stars 9 scripts 325 downloads 42 exports 17 dependencies

Last updated from:544eb34747. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK197
source / vignettesOK213
linux-release-x86_64OK188
macos-release-arm64OK124
macos-oldrel-arm64OK173
windows-develOK188
windows-releaseOK164
windows-oldrelOK142
wasm-releaseOK154

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_pdfsvg_to_pdf_chromesvg_to_pngsvg_to_png_chromesvg_to_png_with_marginsvgs_dir

Dependencies:base64encclicpp11digestfastmapfontBitstreamVerafontLiberationfontquivergdtoolsgluehtmltoolsjsonlitelaterlifecycleRcpprlangsystemfonts

Export and Conversion
Overview | Saving as SVG | Converting to PNG | Standard conversion (rsvg) | Chrome-based conversion (recommended for fonts) | Installing Chrome support | Background options | PNG with margin | Converting to PDF | Chrome-based conversion | Multiple formats | Batch processing | Displaying in R Markdown / Quarto | Choosing the rendering engine | Inline SVG display | PNG display (better compatibility) | Save for knitr | Custom knitr engine | Integration with grid/ggplot2 | Quality settings | DPI recommendations | DPI and Chrome scaling | File size considerations | Comparing engines | Error handling | Troubleshooting | Fonts not rendering correctly with rsvg | Chrome not found | Slow Chrome conversion | Timeout errors

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

Customizing Cards
Colors | Background color | Gradient backgrounds | Text colors | Fonts | Font sizes | Dimensions | Card width | Padding and corners | Custom footer | Custom logos | Complete example | Displaying in documents

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

Introduction to cardargus
What is cardargus? | Installation | Creating your first card | Displaying cards in R Markdown / Quarto | Saving cards | As SVG | As PNG | Chrome rendering (recommended) | Using bundled logos | Custom cards | Next steps

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

Font Management
Overview | Quick Setup | Check Availability | Register Google Fonts | Install Fonts Locally | Using Custom Fonts | CSS for SVG | Font Cache | Access Package Resources | Troubleshooting | Font not rendering correctly | PNG export with rsvg | PNG export with Chrome (recommended) | Fonts on servers | Recommended Fonts | Dependencies

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

Icons and Logos
Built-in Icons | Using icons in fields | Customizing icons | Bundled Logos | Using logos in cards | Loading external SVGs | Creating logo rows | Custom SVG logos | Summary: How to use icons and logos

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

Working with Badges
Overview | Creating a single badge | Badge colors | Automatic text color | Badge rows | Badges in cards | Uniform badge height | Customizing badge appearance | Saving badges | Badge in R Markdown

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 PDFsvg_to_pdf
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