'MUI X Tree View' for 'shiny' Apps and 'Quarto'

Wraps the 'MUI X Tree View' React components < https://mui.com/x/react-tree-view/> for use in 'shiny' applications and 'quarto' documents, letting users navigate hierarchical data with nested levels that can be expanded and collapsed. Bundles the MIT-licensed community edition of the '@mui/x-tree-view' JavaScript library (the commercial 'Pro' tier is not included).


muiTreeView

CRANstatus R-CMD-check LinkedIn

muiTreeView gives access to MUI X Tree View React components, which lets users navigate hierarchical lists of data with nested levels that can be expanded and collapsed.

Install

You can install the development version of muiTreeView like so:

remotes::install_github("lgnbhl/muiTreeView")

Read the full documentation with examples here.

Basic example

library(muiTreeView)

df <- data.frame(
  pkg = c("muiTreeView", "muiTreeView", "muiTreeView"),
  functions = c("SimpleTreeView", "RichTreeView", "RichTreeView"),
  args = c("items", "items", "onItemSelectionToggle")
)

treeItems <- muiTreeView::asMuiTree(df)

RichTreeView(
  items = treeItems,
  checkboxSelection = TRUE,
  multiSelect = TRUE # FALSE for single select
)
RichTreeView

Full documentation

All the docs with examples are here. They follow the structure of the official MUI X Tree View documentation.

Contribute

If you have any issue, question or want to contribute with a pull request, don’t hesitate to write me on https://github.com/lgnbhl/muiTreeView.

For updates follow Felix Luginbuhl on LinkedIn.

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("muiTreeView")

0.2.0 by Felix Luginbuhl, 15 days ago


https://felixluginbuhl.com/muiTreeView/, https://github.com/lgnbhl/muiTreeView


Report a bug at https://github.com/lgnbhl/muiTreeView/issues


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


Authors: Felix Luginbuhl [aut, cre, cph] (ORCID: , MUI [cph] (Copyright holder of the bundled '@mui/x-tree-view' , '@mui/x-internals' , '@base-ui/utils' and '@mui/system' (subpath imports) JavaScript libraries; see LICENSE.note) , Meta Platforms , Inc. and affiliates [cph] (Copyright holder of the bundled 'react-is' , 'prop-types' and 'use-sync-external-store' JavaScript libraries; 'react' and 'react-dom' are declared as peer dependencies and provided at runtime by 'shiny.react') , React Community [cph] (Copyright holder of the bundled 'react-transition-group' JavaScript library; see LICENSE.note) , Luke Edwards [cph] (Copyright holder of the bundled 'clsx' JavaScript library; see LICENSE.note) , Reselect contributors [cph] (Copyright holder of the bundled 'reselect' JavaScript library; see LICENSE.note)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports muiMaterial, htmltools, shiny.react, utils

Suggests shiny, testthat


See at CRAN