start_update_feed: Set up a development update feed for an app

View source: R/update-feed.R

start_update_feedR Documentation

Set up a development update feed for an app

Description

Checks that the app folder holds no dev-app-update.yml of the author's before anything is written or started, then writes the feed files to a new temporary folder, starts the server on it, and writes dev-app-update.yml pointing at the server. If a later step fails or is interrupted, the earlier ones are undone.

Usage

start_update_feed(app_dir, version, app_slug)

Arguments

app_dir

App folder.

version

Version the feed offers, such as "2.0.0".

app_slug

Name of the app's package.json, as a slug.

Details

The result holds the server's process object, and a collected process object ends the server, so keep the result referenced until stop_update_feed() is called on it. Register that call with on.exit() before starting the feed, with the variable set to NULL first, which stop_update_feed() accepts:

feed <- NULL
on.exit(stop_update_feed(feed), add = TRUE)
feed <- start_update_feed(app_dir, version, app_slug)

Value

A list with app_dir, dir (the feed folder) and server (from start_update_feed_server()).


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