A quick, start-from-scratch guide : https://r-mageddon.netlify.com/post/writing-an-r-package-from-scratch/
Step by step, comprehensive reference : http://r-pkgs.had.co.nz/
Be aware that new tools become available, so advice on good practice can change over time.
a personal package saved only on your local machine
a package saved on github (no checks or rules for submission)
a package submitted to CRAN
automates creation of package components (relatively new)
essential tools for package development
allows you to create documentation files for packages by putting comments into the code files themselves. This is MUCH better than writing documentation files separately because if you do that the code and documentation INEVITABLY diverge.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.