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 diaspora into smaller, more focussed packages.
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.