This PR adds helper functions to catch warnings and errors from function calls and display them to the user. These functions are used to implement a solution for #83 in order to warn the user that the power of the analysis is low. The test for power itself is implemented in the function check_nunits() so that users that use R will also see the warning message as an ordinary warning printed to the console.
This PR adds helper functions to catch warnings and errors from function calls and display them to the user. These functions are used to implement a solution for #83 in order to warn the user that the power of the analysis is low. The test for power itself is implemented in the function
check_nunits()
so that users that use R will also see the warning message as an ordinary warning printed to the console.