Re: [R-pkg-devel] Removing import(methods) stops exporting S4 "meta name"

2024-03-15 Thread Ivan Krylov via R-package-devel
On Thu, 14 Mar 2024 16:06:50 -0400 Duncan Murdoch wrote: > Error in xj[i] : invalid subscript type 'list' > Calls: join_inner -> data.frame -> [ -> [.data.table -> [.data.frame > Execution halted And here's how it happens: join_inner calls xi[yi,on=by,nomatch=0] on data.tables xi and yi.

[R-pkg-devel] Export everything whose name does not start with ".".

2024-03-15 Thread Rolf Turner
There was fairly recently a discussion on this list of a problem whose solution involved having code in NAMESPACE which exported everything whose name did not start with ".". In the course of this discussion it was remarked that the code given in "Writing R Extensions", explicitly

Re: [R-pkg-devel] Export everything whose name does not start with ".".

2024-03-15 Thread Rolf Turner
On Sat, 16 Mar 2024 11:39:28 +1100 Hugh Parsonage wrote: > It would have been helpful for that person to specify their candidate > regex, rather than just saying it could be simpler. Actually they *did* specify; the problem was that my ageing senile memory could not recall the specification.

Re: [R-pkg-devel] Export everything whose name does not start with ".".

2024-03-15 Thread Hugh Parsonage
It would have been helpful for that person to specify their candidate regex, rather than just saying it could be simpler. That out of the way, I believe exportPattern("^[^.]") would be sufficient since the square brackets remove any special meaning the dot has. For an alternative, given the