'Lucide' Icons for 'R'

A lightweight wrapper for the 'Lucide' icon library < https://lucide.dev>. Embed beautiful and consistent 'SVG' icons inline in any 'R' web application.


lucidr lucidr website

hyperverse Lifecycle:stable R-CMD-check Codecov testcoverage

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.

Installation

pak::pak("hyperverse-r/lucidr")

Usage

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+ icons

Example

An 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.

Code of Conduct

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("lucidr")

0.1.0 by Arthur Bréant, 7 months ago


https://github.com/hyperverse-r/lucidr


Report a bug at https://github.com/hyperverse-r/lucidr/issues


Browse source code at https://github.com/cran/lucidr


Authors: Arthur Bréant [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmltools

Suggests htmxr, plumber2, testthat


See at CRAN