[R] Packaging platform-specific functions

From: <jhallman_at_frb.gov>
Date: Wed 21 Jun 2006 - 03:54:15 EST

I have a few functions, such as screenWidth() and screenHeight(), which I have been able to implement for a Unix/Linux environment, but not for Windows. (Does anyone know how to find the screen dimensions in Windows?)

The Writing R Extensions manual tells me how to include platform-specific sections in documentation, and even how to have platform-specific help files. But it doesn't say anything about when or how to handle platform-specific code. In particular, how do package writers handle functions that make sense for one platform but not for another? I'd like to keep a single set of source code files and generate the Windows and Linux packages from it.

Any suggestions?

Jeff Hallman

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 21 05:22:40 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 21 Jun 2006 - 06:11:54 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.