{
  "_id": "6a1973f0acfb0bcc41defd49",
  "Package": "cardargus",
  "Title": "Generate SVG Information Cards with Embedded Fonts and Badges",
  "Version": "0.2.2",
  "Date": "2026-02-28",
  "Authors@R": "c(\nperson(\"Andre\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\")),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\"),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\"))",
  "Description": "Create self-contained SVG information cards with embedded\n'Google Fonts', shields-style badges, and custom logos. Cards\nare fully portable SVG files ideal for dashboards, reports, and\nweb applications. Includes functions to export cards to PNG\nformat and display them in 'R Markdown' and 'Quarto' documents.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "URL": "https://strategicprojects.github.io/cardargus/,\nhttps://github.com/StrategicProjects/cardargus",
  "BugReports": "https://github.com/StrategicProjects/cardargus/issues",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libcairo2-dev libfontconfig1-dev libfreetype6-dev\nlibmagick++-dev gsfonts librsvg2-dev libssl-dev",
  "Repository": "https://strategicprojects.r-universe.dev",
  "Date/Publication": "2026-02-28 12:46:52 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/cardargus",
  "RemoteRef": "HEAD",
  "RemoteSha": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-29 09:35:49 UTC",
    "User": "root"
  },
  "Author": "Andre Leite [aut, cre],\nHugo Vasconcelos [aut],\nDiogo Bezerra [aut]",
  "Maintainer": "Andre Leite <leite@castlab.org>",
  "MD5sum": "b043dba7e52d517094b7892a5a4284c2",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "cardargus_0.2.2.tar.gz",
  "_fileid": "4711fcf73e242d6302ebbfb0b433301ba6fba79e0fe88d7592cfe09f5b147d79",
  "_filesize": 1467983,
  "_sha256": "4711fcf73e242d6302ebbfb0b433301ba6fba79e0fe88d7592cfe09f5b147d79",
  "_created": "2026-05-29T09:35:49.000Z",
  "_published": "2026-05-29T11:09:36.326Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78475672433,
      "time": 178,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287706496"
    },
    {
      "job": 78475672486,
      "time": 187,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287709349"
    },
    {
      "job": 78475672458,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7289252607"
    },
    {
      "job": 78475672463,
      "time": 114,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7289261456"
    },
    {
      "job": 78474973722,
      "time": 275,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287653068"
    },
    {
      "job": 78475672475,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287686659"
    },
    {
      "job": 78475672502,
      "time": 146,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287697344"
    },
    {
      "job": 78475672464,
      "time": 161,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7287701526"
    },
    {
      "job": 78475672634,
      "time": 155,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287700126"
    }
  ],
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/strategicprojects/cardargus",
  "_commit": {
    "id": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "update site\n",
    "time": 1772282812
  },
  "_maintainer": {
    "name": "Andre Leite",
    "email": "leite@castlab.org"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "gdtools",
      "role": "Imports"
    },
    {
      "package": "magick",
      "role": "Imports"
    },
    {
      "package": "rsvg",
      "role": "Imports"
    },
    {
      "package": "later",
      "role": "Imports"
    },
    {
      "package": "base64enc",
      "role": "Suggests"
    },
    {
      "package": "chromote",
      "role": "Suggests"
    },
    {
      "package": "curl",
      "role": "Suggests"
    },
    {
      "package": "gfonts",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "showtext",
      "role": "Suggests"
    },
    {
      "package": "sysfonts",
      "role": "Suggests"
    },
    {
      "package": "systemfonts",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "strategicprojects",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 2
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 7,
      "uuid": 7375849
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 142,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cardargus"
  },
  "_devurl": "https://github.com/strategicprojects/cardargus",
  "_pkgdown": "https://strategicprojects.github.io/cardargus/",
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/cardargus.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/strategicprojects/cardargus",
  "_realowner": "strategicprojects",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2026-01-31"
    },
    {
      "version": "0.2.1",
      "date": "2026-02-05"
    },
    {
      "version": "0.2.2",
      "date": "2026-02-28"
    }
  ],
  "_exports": [
    "batch_svg_to_base64_chrome",
    "batch_svg_to_png",
    "batch_svg_to_png_chrome",
    "card_to_grob",
    "chrome_available",
    "compress_number",
    "create_badge",
    "create_badge_row",
    "create_bottom_logo_row",
    "create_logo_row",
    "ensure_chrome",
    "find_chrome_path",
    "font_available",
    "font_cache_dir",
    "get_font_css",
    "get_svg_path",
    "icon_building",
    "icon_construction",
    "icon_house",
    "icon_map_pin",
    "icon_money",
    "include_card",
    "include_card_png",
    "install_fonts",
    "is_light_color",
    "list_bundled_svgs",
    "list_fonts",
    "load_svg_for_embed",
    "register_cardargus_knitr",
    "register_font",
    "register_google_font",
    "save_card_for_knitr",
    "save_svg",
    "setup_fonts",
    "svg_card",
    "svg_to_formats",
    "svg_to_pdf_chrome",
    "svg_to_png",
    "svg_to_png_chrome",
    "svg_to_png_with_margin",
    "svgs_dir"
  ],
  "_help": [
    {
      "page": "batch_svg_to_base64_chrome",
      "title": "Batch convert SVGs to PNG base64 using headless Chrome",
      "topics": [
        "batch_svg_to_base64_chrome"
      ]
    },
    {
      "page": "batch_svg_to_png",
      "title": "Batch convert multiple SVG cards to PNG",
      "topics": [
        "batch_svg_to_png"
      ]
    },
    {
      "page": "batch_svg_to_png_chrome",
      "title": "Batch convert SVGs to PNG files using headless Chrome",
      "topics": [
        "batch_svg_to_png_chrome"
      ]
    },
    {
      "page": "card_to_grob",
      "title": "Create a grob for grid/ggplot2",
      "topics": [
        "card_to_grob"
      ]
    },
    {
      "page": "chrome_available",
      "title": "Check if Chrome/Chromium is available for rendering",
      "topics": [
        "chrome_available"
      ]
    },
    {
      "page": "compress_number",
      "title": "Compress number to abbreviated format",
      "topics": [
        "compress_number"
      ]
    },
    {
      "page": "create_badge",
      "title": "Create an SVG Badge",
      "topics": [
        "create_badge"
      ]
    },
    {
      "page": "create_badge_row",
      "title": "Create a row of SVG badges with uniform height",
      "topics": [
        "create_badge_row"
      ]
    },
    {
      "page": "create_bottom_logo_row",
      "title": "Create logo row for bottom-left corner of card",
      "topics": [
        "create_bottom_logo_row"
      ]
    },
    {
      "page": "create_logo_row",
      "title": "Create logo row for top-right corner of card",
      "topics": [
        "create_logo_row"
      ]
    },
    {
      "page": "ensure_chrome",
      "title": "Ensure Chrome is available, downloading if necessary",
      "topics": [
        "ensure_chrome"
      ]
    },
    {
      "page": "find_chrome_path",
      "title": "Find Chrome executable path",
      "topics": [
        "find_chrome_path"
      ]
    },
    {
      "page": "font_available",
      "title": "Check if a font is available for embedding",
      "topics": [
        "font_available"
      ]
    },
    {
      "page": "font_cache_dir",
      "title": "Get font cache directory",
      "topics": [
        "font_cache_dir"
      ]
    },
    {
      "page": "get_font_css",
      "title": "Get Google Font CSS for embedding in SVG",
      "topics": [
        "get_font_css"
      ]
    },
    {
      "page": "get_svg_path",
      "title": "Get path to a bundled SVG file",
      "topics": [
        "get_svg_path"
      ]
    },
    {
      "page": "icon_building",
      "title": "Building Icon SVG",
      "topics": [
        "icon_building"
      ]
    },
    {
      "page": "icon_construction",
      "title": "Construction Icon SVG",
      "topics": [
        "icon_construction"
      ]
    },
    {
      "page": "icon_house",
      "title": "House Icon SVG",
      "topics": [
        "icon_house"
      ]
    },
    {
      "page": "icon_map_pin",
      "title": "Map Pin Icon SVG",
      "topics": [
        "icon_map_pin"
      ]
    },
    {
      "page": "icon_money",
      "title": "Dollar/Money Icon SVG",
      "topics": [
        "icon_money"
      ]
    },
    {
      "page": "include_card",
      "title": "Display card in knitr/Quarto document (SVG via data URI)",
      "topics": [
        "include_card"
      ]
    },
    {
      "page": "include_card_png",
      "title": "Display card as PNG in knitr/Quarto document",
      "topics": [
        "include_card_png"
      ]
    },
    {
      "page": "install_fonts",
      "title": "Pre-download fonts for offline use",
      "topics": [
        "install_fonts"
      ]
    },
    {
      "page": "is_light_color",
      "title": "Check if a color is light",
      "topics": [
        "is_light_color"
      ]
    },
    {
      "page": "list_bundled_svgs",
      "title": "List available bundled SVG files",
      "topics": [
        "list_bundled_svgs"
      ]
    },
    {
      "page": "list_fonts",
      "title": "List registered/cached fonts",
      "topics": [
        "list_fonts"
      ]
    },
    {
      "page": "load_svg_for_embed",
      "title": "Load and process external SVG file for embedding",
      "topics": [
        "load_svg_for_embed"
      ]
    },
    {
      "page": "register_cardargus_knitr",
      "title": "Register cardargus knitr engine",
      "topics": [
        "register_cardargus_knitr"
      ]
    },
    {
      "page": "register_font",
      "title": "Register a local font file for embedding",
      "topics": [
        "register_font"
      ]
    },
    {
      "page": "register_google_font",
      "title": "Register Google Font (sysfonts)",
      "topics": [
        "register_google_font"
      ]
    },
    {
      "page": "save_card_for_knitr",
      "title": "Save card and return path for knitr",
      "topics": [
        "save_card_for_knitr"
      ]
    },
    {
      "page": "save_svg",
      "title": "Save SVG string to file (sanitized + embedded fonts)",
      "topics": [
        "save_svg"
      ]
    },
    {
      "page": "setup_fonts",
      "title": "Setup showtext for cardargus",
      "topics": [
        "setup_fonts"
      ]
    },
    {
      "page": "svg_card",
      "title": "Create an Information Card in SVG Format",
      "topics": [
        "svg_card"
      ]
    },
    {
      "page": "svg_to_formats",
      "title": "Convert SVG to multiple formats",
      "topics": [
        "svg_to_formats"
      ]
    },
    {
      "page": "svg_to_pdf_chrome",
      "title": "Convert SVG to PDF using headless Chrome",
      "topics": [
        "svg_to_pdf_chrome"
      ]
    },
    {
      "page": "svg_to_png",
      "title": "Convert SVG to PNG",
      "topics": [
        "svg_to_png"
      ]
    },
    {
      "page": "svg_to_png_chrome",
      "title": "Convert SVG to PNG using headless Chrome",
      "topics": [
        "svg_to_png_chrome"
      ]
    },
    {
      "page": "svg_to_png_with_margin",
      "title": "Convert SVG to PNG with optional margin and background",
      "topics": [
        "svg_to_png_with_margin"
      ]
    },
    {
      "page": "svgs_dir",
      "title": "Get the path to package SVGs directory",
      "topics": [
        "svgs_dir"
      ]
    }
  ],
  "_pkglogo": "https://github.com/strategicprojects/cardargus/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/strategicprojects/cardargus/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "cli",
    "cpp11",
    "curl",
    "digest",
    "fastmap",
    "fontBitstreamVera",
    "fontLiberation",
    "fontquiver",
    "gdtools",
    "glue",
    "htmltools",
    "jsonlite",
    "later",
    "lifecycle",
    "magick",
    "magrittr",
    "Rcpp",
    "rlang",
    "rsvg",
    "systemfonts"
  ],
  "_vignettes": [
    {
      "source": "customization.Rmd",
      "filename": "customization.html",
      "title": "Customizing Cards",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-02-28 12:40:46",
      "commits": 2
    },
    {
      "source": "export.Rmd",
      "filename": "export.html",
      "title": "Export and Conversion",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Saving as SVG",
        "Converting to PNG",
        "Standard conversion (rsvg)",
        "Chrome-based conversion (recommended for fonts)",
        "Installing Chrome support",
        "Background options",
        "PNG with margin",
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-02-28 12:40:46",
      "commits": 2
    },
    {
      "source": "fonts.Rmd",
      "filename": "fonts.html",
      "title": "Font Management",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-01-21 12:11:35",
      "commits": 1
    },
    {
      "source": "icons.Rmd",
      "filename": "icons.html",
      "title": "Icons and Logos",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-01-21 12:11:35",
      "commits": 1
    },
    {
      "source": "cardargus.Rmd",
      "filename": "cardargus.html",
      "title": "Introduction to cardargus",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-02-28 12:40:46",
      "commits": 2
    },
    {
      "source": "badges.Rmd",
      "filename": "badges.html",
      "title": "Working with Badges",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-01-21 12:11:35",
      "modified": "2026-01-21 12:11:35",
      "commits": 1
    }
  ],
  "_score": 5.209515014542631,
  "_indexed": true,
  "_nocasepkg": "cardargus",
  "_universes": [
    "strategicprojects"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-29T09:38:20.000Z",
      "distro": "noble",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "d1967de9b01afbaa30915a02aac21df4eaf4f390b321a45ad948d5daa9c6fa9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-29T09:38:30.000Z",
      "distro": "noble",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "1f4de197324f39c93028275969babbf36cff0fba52f15cb41eb57334a041fcb7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-29T11:07:57.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "702fc7e9fb60b01190cb7138b23a85ac137e1592fe3ce9bc02fdaa538b796fd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-29T11:08:35.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "4055e002cec56980205b73192cb1470e0b75484b6117f39da5cd0724a3409e19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.2",
      "date": "2026-05-29T09:38:01.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "91947205209a8bd5d511831fcbbb6e6139a7ff510b770d9d6cc30c169d5b7983",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-29T09:37:09.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "2d738a5a288a9dfa1c59567edf6e7c9768223e7659d515bcc7ab95a943f0a751",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-29T09:37:17.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "3f9de1952a63cae6ab7c0b45321f3baae1f1f1c60ea967af48f9b2d3beafa681",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-29T09:37:11.000Z",
      "commit": "8c4a5ef7fa31df24ecc392b8d49c1af494374d51",
      "fileid": "5e3e120d72101276a0d5d83cb54b307c879775be31eafebcdaa55a9f4187746d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26629625177"
    }
  ]
}