Installing packages in R is more complicated than it seems
Structure of a package
Suggestion: Install binary packages whenever possible
remotes::install_github() (devtools::install_github())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.