`set_custom_branch()` overrides the global default branch for specific packages, persisting the change as the `metapip.custom_branch` R option. `get_custom_branch()` retrieves the current custom branch assignments.
Value
`set_custom_branch()`: the updated custom branch list (returned invisibly).
`get_custom_branch()`: a named list of class `"metapip_simplelist"` with custom branch assignments, printed to the console.
Details
Custom branches take precedence over the global default (from [get_default_branch()]) in all functions that resolve a package's branch. The convention is `package_branch` in the options list, but you pass package names directly to `set_custom_branch()`.
See also
[get_default_branch()], [get_current_branches()]
Other branch configuration:
get_current_branches(),
get_default_branch()