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

2021-09-29 Thread Duncan Murdoch
On 29/09/2021 2:13 p.m., Andrew Simmons wrote: I noticed in the Writing R Extensions manual, it says that within a NAMESPACE file, "Only very simple conditional processing of if statements is implemented.". I tried it out myself by importing a Windows exclusive function: if (.Platform$OS.type =

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

2021-09-29 Thread Andrew Simmons
I noticed in the Writing R Extensions manual, it says that within a NAMESPACE file, "Only very simple conditional processing of if statements is implemented.". I tried it out myself by importing a Windows exclusive function: if (.Platform$OS.type == "windows") importFrom(utils, getWindowsHand