Skip to content
Prev 348506 / 398500 Next

Convert windows source package for Mac use

Hi,

Just as an FYI, there is a Mac specific SIG list:

  https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Next, the Windows .zip file is a *binary*, not source package, specifically compiled for Windows, as you hint at above. If the package contains any C/C++/FORTRAN code, then that code is also compiled for Windows and is not portable.

The source package would/should have a .tar.gz extension and you would want your friend to provide that version of his/her package, presuming that he/she created this package and that it is not otherwise available (eg. from CRAN or a third party location). 

If you can get that version of the package, then you may be able to install it on OS X, using:

  install.packages(PackageFileName, repos = NULL, type = "source")

That presumes that there is no C/C++/FORTRAN code that requires compilation. If so, you would also need to install required development related tools which are referenced in the R FAQ for OSX and the Installation and Admin manual.

Regards,

Marc Schwartz