原文如下,我看不懂
S4 classes: if you want others to be able to extend your class, @export it.<br />
If you want others to create instances of your class, but not extend it,<br />
@export the constructor function, but not the class.</p>
<p># Can extend and create<br />
#' @export<br />
setClass("A")</p>
<p># Can extend, but constructor not exported<br />
#' @export<br />
B <- setClass("B")</p>
<p># Can create, but not extend<br />
#' @export C<br />
C <- setClass("C")</p>
<p># Can create and extend<br />
#' @export D<br />
#' @exportClass D<br />
D <- setClass("D")
我试验了貌似都是找不到B,C,D之类的构造函数,然后都可以继承这些类?
</p>