The code is from Gallistel et al. (2004), translated from Matlab to R, with large portions of comments and original code preserved. The package consists of a few internal functions and one wrapper function, cp_wrapper.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.