Skip to contents

Reports the current auto-update configuration status.

Usage

check_auto_update_status(appdir)

Arguments

appdir

Character path to app directory

Value

Invisibly returns the updates configuration list, which is always present because read_config() deep-merges defaults. Elements include enabled (logical, FALSE by default when auto-updates have never been enabled), provider (character), check_on_startup, auto_download, auto_install (logical), and, for the GitHub provider, github (a list with owner, repo, private).

Examples

# Check update configuration on a temporary app
app <- file.path(tempdir(), "check-updates-demo")
dir.create(app, showWarnings = FALSE)
writeLines("library(shiny)", file.path(app, "app.R"))
enable_auto_updates(app, owner = "myusername", repo = "myapp", verbose = FALSE)
check_auto_update_status(app)
#> 
#> ── Auto-Update Status ──
#> 
#>  Auto-updates are enabled
#>  Provider: "github"
#>  Repository: <https://github.com/myusername/myapp>
#>  Settings:
#>  Check on startup: TRUE
#>  Auto-download: FALSE
#>  Auto-install: FALSE