Refer to https://r-pkgs.org/software-development-practices.html. Github actions could be used for continuous integration to automate testing.