shewhart.rules(object, run.length=8)
shewhart.rules may be applied directly to an object inheriting from class "shewhart" to obtain a list containing the indices of points beyond the control limits and those violating the runs rule.
qc.chart <- shewhart(qcc(matrix(rnorm(100),ncol = 5), "xbar")) shewhart.rules(qc.chart)