- Example of using AJAX for lazy loading https://github.com/stla/jsTreeR content.
- This is a simple example that lazily loads a filesystem tree
- The same principle could be used to lazily load:
- AWS S3 Bucket folders
- Remote SSH/Filesystem
- Database content
# shiny
utils::install.packages("shiny")
# shinyjs
utils::install.packages("shinyjs")
# fs
utils::install.packages("fs")
# jsTreeR
#utils::install.packages("jsTreeR")
# Notes as of 2021-Sep-18, the github master version is required for a bug fix
remotes::install_github("stla/jsTreeR")
remotes::install_github("bschulth/jsTreeRExample")
jsTreeRExample::ajax_example_01()
- Note this leverages AJAX ideas from Dean Attali: