Re: [R] building packages for Linux vs. Windows

From: Paul Gilbert <>
Date: Mon, 11 Feb 2008 09:44:07 -0500

Erin Hodgess wrote:
> Hi R People:
> I sure that this is a really easy question, but here goes:
> I'm trying to build a package that will run on both Linux and Windows.
> However, there are several commands in a section that will be
> different in Linux than they are in Windows.


Several people have indicated how to do this, but I encourage you to be sure you really need to do it. Many things can be made to work the same way on all OSs, and packages are much easier to maintain if you do not have several variants. You might consider posting a few example of where you find this necessary, and ask if there is an OS independent way to do it.

Paul Gilbert
> Would I be better off just to build two separate packages, please?
> If just one is needed, how could I determine which system is running
> in order to use the correct command, please?
> Thanks in advance,
> Erin

La version franšaise suit le texte anglais.

This email may contain privileged and/or confidential in...{{dropped:26}} mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 11 Feb 2008 - 15:13:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Feb 2008 - 15:30:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive