Skip to contents

Checks system requirements for shinyelectron including Node.js, npm, operating system, and architecture.

Usage

sitrep_electron_system(verbose = TRUE)

Arguments

verbose

Logical. Whether to print detailed output. Default is TRUE.

Value

Invisibly returns a list with diagnostic information.

Examples

# \donttest{
# Check system requirements
sitrep_electron_system()
#> 
#> ── System Requirements Report ──────────────────────────────────────────────────
#>  Platform: linux
#>  Architecture: x64
#>  Local Node.js (shinyelectron): Not installed
#>    Install with: `shinyelectron::install_nodejs()`
#>  Active Node.js: v22.23.1 (system)
#> ! npm: v10.9.8 (version 11.5.0+ required)
#>  R: v4.6.1
#> 
#> ── Python ──
#> 
#>  Python 3.12.3
#>  Python shinylive: not usable
#>    Install with: `pip install shinylive`
#>  Python shiny: not usable
#>    Install with: `pip install shiny`
#> 
#> ── Container Engine ──
#> 
#>  Container engine: docker
#> 
#> ── Cached Runtimes ──
#> 
#>  No cached runtimes found
#> ! Found 1 issue
#> 
#> ── Recommendations ──
#> 
#>  Update npm with: npm install -g npm@latest

# Get diagnostic info without printing
info <- sitrep_electron_system(verbose = FALSE)
# }