powered by
Checks class and structure of MCMC objects.
chk_mcmcarray checks if mcmcarray-object() object using
chk_mcmcarray
mcmcarray-object()
is.array(x) && is.numeric(x)
chk_mcmcr checks if an mcmcr-object().
chk_mcmcr
mcmcr-object()
chk_mcmcrs checks if an mcmcrs-object().
chk_mcmcrs
mcmcrs-object()
chk_mcmcarray(x, x_name = NULL)chk_mcmcr(x, x_name = NULL)chk_mcmcrs(x, x_name = NULL)
chk_mcmcr(x, x_name = NULL)
chk_mcmcrs(x, x_name = NULL)
The object to check.
A string of the name of object x or NULL.
NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.
NULL
chk_mcmcarray: Check mcmcarray Object
chk_mcmcr: Check mcmcr Object
chk_mcmcrs: Check mcmcrs Object
To just check class use chk::chk_s3_class().
chk::chk_s3_class()
vld_mcmcr()
# NOT RUN { # chk_mcmcarray try(chk_mcmcarray(1)) # chk_mcmcr chk_mcmcr(as.mcmcr(list(x = 1))) try(chk_mcmcr(1)) # chk_mcmcrs chk_mcmcrs(as.mcmcrs(as.mcmcr(list(x = 1)))) try(chk_mcmcrs(1)) # }
Run the code above in your browser using DataLab