Skip to contents

Discovers R packages that are dependencies of the current project and installs skills from any that bundle them in inst/skills/. If a DESCRIPTION file exists in the working directory, packages are read from its Imports and Suggests fields. Otherwise, renv::dependencies() is used as a fallback (requires the renv package).

Packages without skills are silently skipped. If no dependencies bundle skills, a message is printed and nothing is installed.

Usage

btw_skill_install_project(path = ".", scope = "project", overwrite = NULL)

Arguments

path

Path to the project directory. Defaults to the current working directory.

scope

Where to install the skills. See btw_skill_install_package() for details.

overwrite

Whether to overwrite existing skills. See btw_skill_install_package() for details.

Value

The paths to all installed skill directories, invisibly.