README.md

simpleS4

Build Status

This package illustrates the correct way to depend on the methods package, in order to use S4. You need to do two things:

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()"


hadley/simpleS4 documentation built on May 17, 2019, 12:47 p.m.