1

I'm developing this package, which works fine on Unix and Mac. It uses the parallel package, so I was expecting issues with Windows, since I have some code using fork clusters. Lo an' behold, Windows did not disapoint...

Is there a way I can somehow have the installation check what OS it is under and get a different version of the affected functions ? Checking for the OS inside the affected code is also a possible option, but seems less clean.

I'm sure there is a way to do this since parallel itself has to do it, but I haven't been able to find out how. When I look into its functions' code, there are only stops/warnings for windows-related stuff, indicating that the OS check is done during install at latest.

RoB
  • 1,833
  • 11
  • 23
  • Perhaps use some site that tests your build on each OS type? Say continuous integration? – NelsonGon Jun 25 '19 at 06:29
  • 1
    This might be useful: https://stackoverflow.com/questions/4463087/detecting-operating-system-in-r-e-g-for-adaptive-rprofile-files – NelsonGon Jun 25 '19 at 06:31
  • Thanks, that's a good start for checking within the code/functions. Any ideas on setting this up for a conditional install process ? – RoB Jun 25 '19 at 07:35

0 Answers0