Re: [R-pkg-devel] Writing a portable package that imports functions only available on Windows

2015-09-19 Thread Duncan Murdoch
On 19/09/2015 6:07 AM, Richard Cotton wrote: > I have a package that uses win.version from the utils package. > > I've made my R code safe to use across platforms, I check that the OS is > Windows before calling win.version. > > The NAMESPACE file contains the line > > importFrom(utils,win.versi

Re: [R-pkg-devel] Writing a portable package that imports functions only available on Windows

2015-09-19 Thread Thierry Onkelinx
Have a look at the RODBC package. odbcConnectAcces() is only available on Windows. Op 19-sep.-2015 12:08 schreef "Richard Cotton" : > I have a package that uses win.version from the utils package. > > I've made my R code safe to use across platforms, I check that the OS is > Windows before calling

[R-pkg-devel] Writing a portable package that imports functions only available on Windows

2015-09-19 Thread Richard Cotton
I have a package that uses win.version from the utils package. I've made my R code safe to use across platforms, I check that the OS is Windows before calling win.version. The NAMESPACE file contains the line importFrom(utils,win.version) which causes an install failure under other OSes since t