Since we don't have a way of getting the bagit module in R, all we can do is use the default bag function by calling the full python file on a directory. This will create a bag.
The path to the directory that needs to be bagged
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.