This package illustrates the correct way to depend on the methods package, in order to use S4. You need to do two things:
Depends: methods
This passes R CMD check, and works when run from Rscript:
Rscript --vanilla -e "library(simpleS4); testS4()"
Rscript --vanilla -e "simpleS4::testS4()"
Rscript --vanilla -e "library(simpleS4); testRC()"
This doesn't (yet):
Rscript --vanilla -e "simpleS4::testRC()"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.