Skip to content
Framework

Packages

push_all()

Push Everything to Framework Cloud

Sends everything that syncs to the project on Framework Cloud, in one call: its package list, its locally edited skills, and its data registry. Cloud previews each part first (as a dry run), and the changes are listed together, grouped by part (Packages, Skills, Data registry), with what each push affects: new setups, zips, and Update on GitHub use the package list and data registry, and a skill's new version is used wherever it's attached. Then it asks Push these changes? [y/n] once.

Usage

push_all(
  project_path = ".",
  remove = FALSE,
  force = FALSE,
  confirm = NULL,
  dry_run = FALSE
)

Arguments

Name Default Description
project_path "."

Path to the project directory (default: current directory).

remove FALSE

Remove packages and data entries from Cloud that this project doesn't have.

force FALSE

Push even when a part changed on Cloud since the last pull.

confirm NULL

TRUE pushes without asking; FALSE cancels. NULL asks in a console and stops otherwise.

dry_run FALSE

List the changes and send nothing.

Value

Invisibly, a list: packages and data_registry (each with revision and Cloud's changes: added, changed, removed, and kept), skills (each skill's name, status, and path), applied (the parts pushed), failed (a reason for each part that wasn't), dry_run, and message.

Details

Packages and data entries only on Cloud stay there unless remove = TRUE. When a part changed on Cloud since this project last pulled it (the revisions in .framework/setup.lock.json and .framework/data.lock.json, and each skill's in .framework/skills.lock.json), that part is refused with "Pull first"; force = TRUE replaces Cloud's newer changes. Edited skills need cloud_login(); packages and the data registry go with the project token. Only data definitions are sent, never data files or hashes.

When a part can't be pushed, the others still are, and the error names which parts were pushed and which weren't. A push resolves the project again from its blueprint's latest version.

Examples

Not run

if (FALSE) {
push_all(dry_run = TRUE)
push_all()
}

Related reference

Search guides and reference for R, Python, Stata, the CLI, and Framework Cloud.