get_abbrs: Get house style abbreviations

get_abbrsR Documentation

Get house style abbreviations

Description

An aspect of the ready4 framework is a consistent house style for code. Retrieve details on framework abbreviations with get_abbrs().

Usage

get_abbrs(
  what_1L_chr = character(0),
  type_1L_chr = c("abbreviation", "extension"),
  abbreviations_lup = NULL,
  gh_repo_1L_chr = "ready4-dev/ready4",
  gh_tag_1L_chr = "Documentation_0.0",
  dv_nm_1L_chr = NA_character_,
  dv_ds_metadata_ls = list(list()),
  dv_ds_nm_1L_chr = NA_character_,
  dv_server_1L_chr = NA_character_,
  dv_url_pfx_1L_chr = NA_character_,
  search_descs_1L_lgl = deprecated()
)

Arguments

what_1L_chr

What (a character vector of length one), Default: character(0)

type_1L_chr

Type (a character vector of length one), Default: c("abbreviation", "extension")

abbreviations_lup

Abbreviations (a lookup table), Default: NULL

gh_repo_1L_chr

Github repository (a character vector of length one), Default: 'ready4-dev/ready4'

gh_tag_1L_chr

Github tag (a character vector of length one), Default: 'Documentation_0.0'

dv_nm_1L_chr

Dataverse name (a character vector of length one), Default: 'NA'

dv_ds_metadata_ls

Dataverse dataset metadata (a list), Default: list(list())

dv_ds_nm_1L_chr

Dataverse dataset name (a character vector of length one), Default: 'NA'

dv_server_1L_chr

Dataverse server (a character vector of length one), Default: 'NA'

dv_url_pfx_1L_chr

Dataverse url prefix (a character vector of length one), Default: 'NA'

search_descs_1L_lgl

Search descriptions (a logical vector of length one), Default: deprecated()

Value

Abbreviations (a lookup table)

Examples

library(ready4)
# Get current table of abbreviations
abbreviations_lup <- get_abbrs(gh_repo_1L_chr = "ready4-dev/ready4")
abbreviations_lup %>% head()
# Find abbreviations for a word
get_abbrs("template", abbreviations_lup = abbreviations_lup)
# Find possible whole word meanings associated with an abbreviation
get_abbrs("org", type_1L_chr = "extension", abbreviations_lup = abbreviations_lup)



ready4-dev/ready4fun documentation built on April 22, 2024, 8:33 a.m.