[R-SIG-Mac] Generating R .pkg file for Mac Distribution

Berry, Charles ccberry @ending from uc@d@edu
Thu May 17 18:39:30 CEST 2018

> On May 16, 2018, at 11:40 AM, Nigel Delaney <nigelfdelaney at gmail.com> wrote:
> Hi,
> Mac binaries on R are distributed as .pkg files available from CRAN
> for installation.  Does anyone know if the source script (assuming a
> script is used) that generates this pkg file is available anywhere?
> The pkg seems to contain a few elements like a postflight/postinstall
> script that I could not find in any open source repository and are not
> part of the R binaries.
> We have a few users who are dealing with the fortran compiler issues
> on Mac, and were hoping to just modify the current .pkg to contain a
> few more packages, was hoping to avoid reinventing the wheel on the
> packaging scripts.

Why not just provide those users with the binaries for those packages?

If there are more than a few users and/or more than a few packages that need this treatment, set up your own repository and put the binaries there. See:




More information about the R-SIG-Mac mailing list