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

[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