Skip to content

hadley/simpleS4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • In DESCRIPTION, Depends: methods
  • In NAMESPACE, "imports(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()"

About

A simple package that uses S4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages