lucidr brings the Lucide icon library to R.
Embed beautiful and consistent SVG icons inline in any R web application
— no external font, no CDN dependency.
pak::pak("hyperverse-r/lucidr")library(lucidr)
# Render a single icon
lucide("house")
# Customise size, colour and stroke width
lucide("chevron-right", size = 16, color = "red", stroke_width = 1.5)
# Browse all available icons
lucide_list()
length(lucide_list()) # 1 500+ iconsAn interactive icon showcase is included. It displays a grid of Lucide icons served via plumber2 and htmxr:
source(system.file("examples/icons/run_api.R", package = "lucidr"))Then open http://127.0.0.1:8080 in your browser.
Please note that the lucidr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms
