Skip to contents

Load or update censoring data

Usage

aux_censoring(
  action = c("update", "load"),
  force = FALSE,
  owner = getOption("pipfun.ghowner"),
  maindir = getOption("pipaux.working_dir"),
  tag = NULL
)

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.

tag

character: specific release to be used in the update.

Details

If action = "update", the function retrieves the most recent censoring data files from the GitHub repo and saves them locally in the auxiliary data directory.

If action = "load", the function reads the previously saved local version of the censoring data and returns it as a list of data.tables.