Might be a good idea to use the checkmate package for input argument checking: https://mllg.github.io/checkmate/ This issue functions as a reminder for myself and will be eventually updated or linked to a PR.