rk.uniqueIDs: Check plugin dialogs for duplicate IDs

View source: R/rk.uniqueIDs.R

rk.uniqueIDsR Documentation

Check plugin dialogs for duplicate IDs

Description

A plugin must not have duplicated IDs to work properly. This function cannot automatically correct duplicates, but it will warn you about it, so you can correct your plugin script manually

Usage

rk.uniqueIDs(obj, bool = FALSE, warning = TRUE, ignore = c("copy"))

Arguments

obj

An XML object of class XiMpLe.node or XiMpLe.doc.

bool

Logical, if TRUE this function will return a logical value.

warning

Logical, if TRUE will throw a warning if duplicates were found, listing the findings.

ignore

Character vector, node names that should generally be ignored because they duplicate IDs by design.

Value

A vector with duplicate IDs, if any were found. If bool=TRUE returns a logical value.


rkward-community/rkwarddev documentation built on May 9, 2022, 3:02 p.m.