Riksrevisjonen / pioneeR

R package for running a Shiny app for DEA analysis
https://riksrevisjonen.github.io/pioneeR/
GNU General Public License v3.0
6 stars 2 forks source link

83 add warning if the power of the analysis is low #109

Closed ohjakobsen closed 4 weeks ago

ohjakobsen commented 4 weeks ago

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.