Framework for R

Cloud

skills_sync()

Synchronize a Skill Directory

Synchronize a versioned skill bundle with Framework Cloud. Divergent changes return a conflict without replacing files. Companion files and executable modes are included. Untracked skills become private account skills.

Usage

skills_sync(
  path,
  project_path = ".",
  direction = "auto",
  dry_run = FALSE,
  skill_id = NULL,
  variant = "r",
  resolve = NULL
)

Arguments

Name Default Description
path

Project-relative skill directory.

project_path "."

Project root directory.

direction "auto"

One of auto, push, pull, or status.

dry_run FALSE

Report the action without writing files or Cloud versions.

skill_id NULL

Explicit Cloud skill identity for adoption or an initial pull.

variant "r"

Language variant: r, python, or stata.

resolve NULL

Optional conflict choice: local or remote. Replaced files are backed up.

Value

A list with the action, skill identity, hashes, and version.