Skip to content
Prev 61592 / 63421 Next

Should '@" now be listed in tools:::.get_internal_S3_generics() ?

Thank you for such a quick reply, Gabriel,

I am not too familiar with the package tools, so cannot speak too confidently, but below is how I see the issue currently.

The issue is not for external packages to rely on unexported functions from tools::, rather the issue is that 'R CMD check ?as-cran' runs those functions from tools:: in order to check the validity of Rd files (from any package). R 4.3.0 added @ as internal S3 generic. However, package tools does not recognise it as valid in Rd files and throws errors when it sees S3 method declared for @ in the Rd usage lines.

So any package that will try to use @ generic will run into the issue, without attempting to use internal S3 functions in their code, but during the R CMD check step.

Hope I am being clearer now, and not missing something important (all these things: both @ as generic and tools:: package are quite new to me),
Karolis K.