suppressMessages(library("clifford"))
clifford(list(numeric(0),1,1:2),1:3)
#> Element of a Clifford algebra, equal to
#> + 1 + 2e_1 + 3e_12
clifford(list(0,1,1:2),1:3)
#> Error in is_ok_clifford(terms, coeffs): all(term_elements > 0) is not TRUE
The second call to clifford() has a perfectly reasonable expectation [viz, the same as the first call] but returns an error. Maybe a judicious call to list_modifier() might be worthwhile.
The second call to
clifford()
has a perfectly reasonable expectation [viz, the same as the first call] but returns an error. Maybe a judicious call tolist_modifier()
might be worthwhile.