Skip to content
Framework

Packages

pull_all()

Pull Everything from Framework Cloud

Brings everything that syncs up to date with the project on Framework Cloud, in one call: its packages, its skills, and its data registry. Each part is read with the project token, and the changes are listed together, grouped by part (Packages, Skills, Data registry). Then it asks Apply these changes? [y/n] once.

Usage

pull_all(
  project_path = ".",
  overwrite = FALSE,
  confirm = NULL,
  dry_run = FALSE
)

Arguments

Name Default Description
project_path "."

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

overwrite FALSE

Use Cloud's settings for differing packages and data entries, and replace locally edited skills.

confirm NULL

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

dry_run FALSE

List the changes and write nothing.

Value

Invisibly, a list: packages (revision, and added, changed, differ_kept, and kept_local, as names), skills (the pull_skills() result: the plan, or what was applied), data_registry (revision, and added, changed, differ_kept, and kept_local), applied (the parts applied), failed (a reason for each part that wasn't), dry_run, and message.

Details

Packages: new ones are added to the project's settings and installed (with renv when the project uses it). Local packages are never removed. Skills: missing ones are added and unedited ones updated, as pull_skills() does. Data registry: new entries are written into the settings' data section, as pull_data_registry() does; data files never move. Local edits win everywhere: a package or entry whose local settings differ, and a locally edited skill, are kept unless overwrite = TRUE (edited skills are backed up first).

The revisions pulled are kept in .framework/setup.lock.json (packages) and .framework/data.lock.json (data registry) for push_all(). When a part can't be read or applied, the others still are, and the error names which parts were applied and which weren't.

Examples

Not run

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

Related reference

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