As I am learning more about some sensitive industries, it seems making an R or python package may not be the best solution if the source code can be manipulated by anyone at anytime. It is quiet straight forward to change the source code even when installed from CRAN or pip.
What are the best practices and techniques to prevent check code integrity and make sure the code has not been manipulated by any form?
1