Validity and compatibility of a cry object of class 'bravais'
check_bravais_validity.Rd
An object of class 'bravais' is a named list of length 4. The first slot, "bt", is the universally-used two-letter symbol. The second, third and fourth slots are, respectively, "cr_fam" (the corresponding crystal family), "cr_sys" (the corresponding crystal system) and "lt_sys" (the corresponding lattice system).
Arguments
- x
Object of class 'bravais'.
- message
A logical variable. If TRUE, the function prints a message on the errors, if any (default is FALSE, i.e. no message printed).
Examples
# Create an object of class 'bravais'
x <- bravais("mP")
# Check its validity
check_bravais_validity(x,TRUE)
#> [1] TRUE