tests/testthat/testS4union/R/classes.r

setClass("A")
setClass("B")
setClassUnion("AB", members = c("A", "B"))


setClass("mle2", contains = "mle")
setClassUnion("mleA", members = c("mle", "A"))
setClassUnion("mle2A", members = c("mle2", "A"))

setClassUnion("AOrNull", members = c("A", "NULL"))
setClassUnion("BOrNull", members = c("B", "NULL"))

Try the pkgload package in your browser

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

pkgload documentation built on June 28, 2024, 5:07 p.m.