All the javascript libraries are implemented using the htmlDependency() function which means that the user can use the package without being connected to the internet.
The user has the possibility to use the package within xaringan slides.
The user can now export canvas that contain external images.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.