jtimonen/lgpr

Better error message when x_cont | x_cat is wrong way around in formula

jtimonen opened this issue · 1 comments

Currently, if the categorical and continuous covariate are wrong way around the vertical pipe, it gives

cannot have more than one gp(), gp_ns() or gp_vm() expression in one term! found = 2

because it translates to gp(x_cat)*gp(x_cont) but a better error message would be good.

Fixed in v1.0.12. In the future, it would be better to catch the error already before translating to the advanced syntax.