Closed MatthieuStigler closed 2 months ago
Terminology is a pain here.
@export
ing a method like as.data.frame.proc_time
does not actually export but only register it as an S3 method, i.e. add a line S3method(as.data.frame,proc_time)
to the pkg NAMESPACE
.
To actually export as.data.frame.proc_time
(i.e. add a line export(as.data.frame.proc_time)
to NAMESPACE
), you'd need to add a separate #' @export as.data.frame.proc_time
statement. Cf. this comment by Gábor Csárdi.
tl;dr: Blindy trusting roxygen2's advice tends to be the right thing to do. 🤡
hoi @salim-b
thanks a lot for the explanations!
From
document()
, get:But I am not sure I want to export it!?
Discussion: