dot-vsc.applyVarInfos: Get info about a variable

.vsc.applyVarInfosR Documentation

Get info about a variable

Description

Get info about a variable by applying the relevant varInfo entries.

Usage

.vsc.applyVarInfos(
  v,
  infos = character(0),
  stackingInfos = character(0),
  verbose = getOption("vsc.verboseVarInfos", FALSE),
  ind = NULL
)

Arguments

v

The variable, any R value.

infos

Character vector of field names in varInfo. Retrieve first match.

stackingInfos

Character vector of field names in varInfo. Retrieve all matches.

verbose

Whether to print debug info using logCat, logPrint.

ind

The indices to retrieve if child variables are retrieved.

Details

The allowed varInfo entries and their types are:

  • childVars: MinimalVariable[]

  • nChildVars: number

  • customAttributes: MinmalVariable[]

  • internalAttributes: MinmalVariable[]

  • toString: string

  • type: string

  • evaluateName: string

  • printFunc: function | boolean

Where MinimalVariable[] refers to a list of named lists with entries:

  • name: string

  • rValue: any R value

  • setter: (optional, undocumented)

  • setInfo: (optional, undocumented)

Value

A named list, containing the corresponding varInfo results.

See Also

varInfos


ManuelHentschel/vscDebugger documentation built on April 13, 2025, 8:59 p.m.