The goal of pkgload is to simulate the process of installing and loading a package, without actually doing the complete process, and hence making package iteration much faster. This was previously part of devtools (it was in fact the original motivation) but has been moved into its own package as part of the devtools conscious uncoupling.
In most cases you will not use pkgload directly, and instead you'll call it via
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.