Motivation for S7

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

R already has two OO systems built-in (S3 and S4) and many additional OO systems are available in CRAN packages. Why did we decide more work was needed? This vignette will discuss some of the motivations behind S7, focussing on the aspects of S3 and S4 that have been found to be particularly challenging in practice.

library(S7)

Challenges with S3

Challenges with S4



Try the S7 package in your browser

Any scripts or data that you put into this service are public.

S7 documentation built on April 3, 2025, 10:50 p.m.