inst/doc/auto-updates.R

## -----------------------------------------------------------------------------
#| include: false
library(shinyelectron)


## -----------------------------------------------------------------------------
#| eval: false
# enable_auto_updates(
#   "path/to/app",
#   provider = "github",
#   owner = "your-username",
#   repo = "your-app-repo"
# )


## -----------------------------------------------------------------------------
#| eval: false
# check_auto_update_status("path/to/app")


## -----------------------------------------------------------------------------
#| eval: false
# enable_auto_updates(
#   "path/to/app",
#   provider = "github",
#   owner = "myorg",
#   repo = "my-shiny-dashboard",
#   check_on_startup = TRUE,
#   auto_download = FALSE   # Prompt user before downloading
# )


## -----------------------------------------------------------------------------
#| eval: false
# export("path/to/app", destdir = "build")


## -----------------------------------------------------------------------------
#| eval: false
# export("path/to/app", destdir = "build")
# run_electron_app("build/electron-app", update_version = "2.0.0")


## -----------------------------------------------------------------------------
#| eval: false
# enable_auto_updates(
#   "path/to/app",
#   provider = "generic",
#   url = "https://updates.example.com/my-app/"
# )


## -----------------------------------------------------------------------------
#| eval: false
# enable_auto_updates("path/to/app", provider = "generic", url = "http://127.0.0.1:8080/")
# export("path/to/app", destdir = "build-1.0.0")


## -----------------------------------------------------------------------------
#| eval: false
# export("path/to/app", destdir = "build-1.1.0")


## -----------------------------------------------------------------------------
#| eval: false
# disable_auto_updates("path/to/app")

Try the shinyelectron package in your browser

Any scripts or data that you put into this service are public.

shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.