removeSpsTab: Remove a SPS tab

View source: R/spsNewtab.R

removeSpsTabR Documentation

Remove a SPS tab

Description

Remove a tab R file and remove from the tabs.csv config file

Usage

removeSpsTab(
  tab_id = "none",
  force = FALSE,
  app_path = getwd(),
  multiple = FALSE,
  verbose = spsOption("verbose"),
  colorful = spsOption("use_crayon")
)

Arguments

tab_id

tab ID, string, length 1, supports regular expressions, so be careful. If more than one tabs are matched, stop by default

force

bool, whether to ask for confirmation

app_path

app directory

multiple

bool, if matched more than one tab, turn this to TRUE can remove more than one tab at a time. Be careful.

verbose

bool, follows project setting, but can be overwrite. TRUE will give you more information

colorful

bool, whether the message will be colorful?

Value

remove the tab file and register info in tabs.csv

Examples

spsInit(change_wd = FALSE, overwrite = TRUE)
spsNewTab("vs_new", app_path = glue::glue("SPS_{format(Sys.time(), '%Y%m%d')}"))
removeSpsTab("vs_new", force = TRUE,
             app_path = glue::glue("SPS_{format(Sys.time(), '%Y%m%d')}"))

systemPipeR/systemPipeS documentation built on Oct. 21, 2023, 12:18 p.m.