Nov 27 2024
I had the pleasure of talking about this topic at the 2024 uRos conference held in Greece in Nov 2024. I spoke about how very simple tooling in {shiny}
, combined with {arrow}
can unlock the capability to develop some very powerful interactive tooling in R. I spoke about how we can be quickly scale up our development using shiny modules.
- app.R: Main Shiny application
- docs/: Contains my presentation
- R/: R scripts for data manipulation and Shiny modules
- data/: Datasets.
- .devcontainer/: Configuration for development container
- .vscode/: Visual Studio Code settings
- docker/: Docker configuration files
Clone the repository:
git clone --depth 1 git@github.com:rsangole/uros2024-interactive_baseplots.git
- Ensure Docker is installed and running on your machine.
- Open the project folder in VS Code.
- When prompted by VS Code, reopen the folder in the container.
- If not prompted, open the Command Palette (Ctrl+Shift+P) and select
Remote-Containers: Reopen in Container
. - Once the container is built and running, install required R packages:
renv::restore()
- Run the Shiny application:
shiny::runApp("app.R")
- Access the application in your web browser at
http://localhost:3838
.
- Open the Project:
- Open RStudio and navigate to the project directory.
- Open the
app.R
file.
- Ensure Packages are Installed:
- Install the required packages using
renv
:renv::restore()
- Install the required packages using
- Open and run
app.R
Shiny modules for interactive visualization are located in the R/
directory. Key modules include:
mod_ts.R
: Time series visualization module.mod_basics.R
: Basic UI components for the application.