Dear all,

I am currently working on a package which involves some simulation where no current simulation run depends on a previous simulation run.
That is why I decided to parallelize the computation using the doMC package (which exists only for unix-like OS).

I can create a package without any R CMD check and R CMD build errors on my computers (Ubuntu Linux 32bit & 64 bit).

The problem that I have is: I would like to make the package platform-independent. In this case, this should not be difficult. A simple: 

if (!(.Platform$OS.type=="unix")) {
  ....
}

allows me to specify a different execution path on non unix-like operating systems (i.e. not using doMC-code, resulting in running the code not in parallel).

I just tried it out and uploaded the source package to http://win-builder.r-project.org/

Unfortunately, I get the following result:
[...]
* checking package dependencies ... ERROR
Package required but not available: 'doMC'
[...]

I interpret it as such: Even if the package will never be required (for a particular OS) the build process nevertheless checks whether the packages exists for the respective platform.
What would you suggest? Create two packages (mypackage vs. mypackageNONUNIX)? Release only for unix-like systems? ...?

Thank you in advance,
Roland



----------
This mail has been sent through the MPI for Demographic ...{{dropped:10}}

