inheritance_problem Demo files related to http://stackoverflow.com/questions/22532367/r-s4-data-inheritance-error Install the packages by running: R CMD INSTALL pkgA R CMD INSTALL pkgB R CMD INSTALL pkgC Then run R and source('main.R')