Skip to contents

Get a named list with vectors with all class instance identifiers

Usage

get_all_classInstanceIds(x)

Arguments

x

An object with one or more parsed ROCK sources

Value

A named list of character vectors

Examples

### Get path to example source
examplePath <-
  system.file("extdata", package="rock");

### Get a path to one example file
exampleFile <-
  file.path(examplePath, "example-1.rock");

### Parse single example source
parsedExample <- rock::parse_source(exampleFile);

### Get all class instance identifiers
rock::get_all_classInstanceIds(
  parsedExample
);
#> $caseId
#> [1] "1"
#>