Let deploy script to handle build of document. It will generate document and commit to master-pkg, for each successful tested commit on master. Some adjustment is needed,
Change email and username in .travis.yml
Generate and encrypt your own token following r-deploy-git
This is not the best practice, as devtools::install_github install from master branch by default. It would be better to use master for deploy, and master-src for development. I'll send a pull request later.
Let deploy script to handle build of document. It will generate document and commit to master-pkg, for each successful tested commit on master. Some adjustment is needed,