spsTabInfo: View SPS project 'config/tabs.csv' information

spsTabInfoR Documentation

View SPS project 'config/tabs.csv' information

Description

View SPS project 'config/tabs.csv' information

Usage

spsTabInfo(return_type = "print", n_print = 40, app_path = getwd())

Arguments

return_type

one of 'print', 'data', 'colnames', or a specified column name

n_print

how many lines of tab info you want to print out

app_path

SPS project root

Details

  • 'print' will print out the entire tabs.csv, you can specify n_print for how many lines you want to print;

  • 'data' will return the tab info tibble

  • 'colnames' will return all column names of tab info file

  • A column name will extract the specified column out and return as a vector

Value

return depends on return_type

Examples

spsInit(project_name = "SPS_tabinfo", overwrite = TRUE,
        change_wd = FALSE, open_files = FALSE)
# all lines
spsTabInfo("print", app_path = "SPS_tabinfo")
# 5 lines
spsTabInfo("print", app_path = "SPS_tabinfo", n_print = 5L)
spsTabInfo("data", app_path = "SPS_tabinfo")
spsTabInfo("colnames", app_path = "SPS_tabinfo")
spsTabInfo("tab_id", app_path = "SPS_tabinfo")

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