[R-pkg-devel] if statements in NAMESPACE file

Mark Miller m@rk@rom@n@m|||er @end|ng |rom gm@||@com
Thu Sep 30 17:00:17 CEST 2021


Returning to the original question, if it's helpful: I'd like to know what
constraints led to considering an export only available on Windows, and see
if we can suggest some other designs. It'd be good to keep the user's
mental model abstracted from the platform they're working on. There are
often unavoidable differences due to platform, but usually they're handled
with warnings and errors rather than selective exports.

On Thu, Sep 30, 2021 at 3:40 AM Berry Boessenkool <
berryboessenkool using hotmail.com> wrote:

>
> One of the very best fortunes nominations!
>
> [...]
>
>   I suspect something like
>
>    if (stats::runif(1) > 0.5) export(someFunction)
>
> would work too, for a particularly frustrating experience for your
> users.  It would mean half the installs export the function, and half
> don't.
>
> Duncan Murdoch
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list