dot_test: Helping tests

Description Usage Arguments Value Functions Note

Description

Tests for validating RCX objects and its aspects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.test_RequiredColumnsPresent(aspect, columns, verbose = F)

.test_ListRequiredColumnsPresent(aspect, columns, verbose = F)

.test_AllowedColumnsPresent(aspect, columns, verbose = F)

.test_ListAllowedColumnsPresent(aspect, columns, verbose = F)

.test_NoMergeColumn(aspect, column, verbose = F)

.test_AtLeastOneColumnPresent(aspect, columns, verbose = F)

.test_AtLeastOneElementPresent(aspect, element, verbose = F)

.test_OneNodePresent(nodesAspect, column, verbose = F)

.test_IsUnique(aspect, column, verbose = F)

.test_ListAllUnique(aspect, column, verbose = F)

.test_IsUniqueInLists(aspect, column, verbose = F)

.test_ListAllUniqueInLists(aspect, column, verbose = F)

.test_IsLogical(aspect, column, verbose = F)

.test_IsNumeric(aspect, column, verbose = F)

.test_ElementIsNumeric(aspect, element, verbose = F)

.test_IsCharacter(aspect, column, verbose = F)

.test_ListAllCharacter(aspect, element, verbose = F)

.test_IsList(aspect, column, verbose = F)

.test_ElementIsList(aspect, element, verbose = F)

.test_IsPos(aspect, column, verbose = F)

.test_IsClass(x, cls, verbose = F)

.test_IsNamedList(aspect, names, verbose = F)

.test_IsCVPclass(x, cls, verbose = F)

.test_ListOfCVPclass(x, cls, verbose = F)

.test_ContainsNA(aspect, column, verbose = F)

.test_ListAllContainsNA(aspect, element, verbose = F)

.test_ListAllNumeric(aspect, column, verbose = F)

.test_ListAllNumericOrInDict(aspect, column, dic, verbose = F)

.test_ListAllOfClass(aspect, cls, verbose = F)

.test_AspectExist(rcx, aspect, verbose = F)

.test_IdsInAspect(ids, aspect, column, info = "", verbose = F)

.test_ValuesInSet(aspect, column, set, ignoreNA = T, verbose = F)

.test_DataTypeColumn(aspect, column, verbose = F)

Arguments

aspect

one RCX aspect

columns

character; list of columns

verbose

logical (default=F); also log the results

column

character; column name

cls

character; class name in .CLS or .CLSvp

names

character; names of list

dic

character; key in .DICT

rcx

RCX object

ids

numeric; ids

info

character (default=""); additional message for verbose

ignoreNA

logical (default=T); ignore NA values

Value

logical; pass or fail the test

Functions

Note

Internal function only for convenience


frankkramer-lab/RCX documentation built on July 14, 2021, 6:33 p.m.