removeSpsTab: Remove a SPS tab

Description Usage Arguments Value Examples

View source: R/spsNewtab.R

Description

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

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
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')}"))

systemPipeShiny documentation built on March 16, 2021, 6:01 p.m.