Skip to contents

Applies parse_source() to a source, extract the produced network, and shows it.

Usage

qna(x)

Arguments

x

A loaded source (with load_source()), the path to a loaded source, or an already parsed source (with parse_source()).

Value

A list with all produced graph(s) DiagrammeR objects and as Dot code.

Examples

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

### Read a souce coded with the Qualitative Network Approach
qnaExample <-
  file.path(
    examplePath,
    "network-example-1.rock"
  );

### Show the network
rock::qna(qnaExample);