Skip to contents

Fake PIP SNA function

Usage

fake_aux_sna(
  action = c("update", "load"),
  force = FALSE,
  owner = getOption("pipfun.ghowner"),
  maindir = getOption("pipaux.working_dir"),
  branch = paste0(wrk_release$release, "_", wrk_release$identity),
  tag = match.arg(branch),
  from = c("gh", "file", "api")
)

Arguments

action

character: Either "load" or "update". Default is "update". If "update" data will be updated on the system. If "load" data is loaded in memory.

force

logical: If TRUE data will be overwritten.

owner

character: Github repo owner. Default is getOption("pipfun.ghowner")

maindir

character: Main directory of project.

branch

GitHub branch to use. By default, this is the release branch set in your R session. To ensure correct behavior, call pipfun::setup_working_release() once per session, followed by pipfun::get_wrk_release() to retrieve the active release. These steps ensure the function uses the correct release branch (e.g., "release_2024Q1"). Alternatively, you can explicitly specify other branches among "DEV", "PROD", or "main" if needed

tag

character: specific release to be used in the update.

from

character: Either "gh", "file" or "api". Default is "gh". "file" and "gh" are synonymous