Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
BTW, as we have 1500+ R packages in MacPorts now, I can say for the fact that almost everything works fine on PPC, at least if we rely on test results.
There are still a few packages where some tests fail (and a chunk of those which were not yet tested), but failing cases are minimal.

So while launching spaceships is not recommended LOL, for most purposes R on PPC is fully functional.
 
  • Like
Reactions: Amethyst1

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
Hold on with updating R or installing any R packages at the moment on <10.7, due to: https://trac.macports.org/ticket/67298

If you want to install packages while keeping R at 4.2.3, make sure to modify R-1.0.tcl after every port sync to have 4.2.3 version there too. Basically, you need to revert changes from: https://github.com/macports/macports-ports/commit/fcccc139830aaea518b0066ac95644e452047199

To skip updating dependencies of anything, add -n argument, like: sudo port -v -n install portname.
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
Hold on with updating R or installing any R packages at the moment on <10.7, due to: https://trac.macports.org/ticket/67298

If you want to install packages while keeping R at 4.2.3, make sure to modify R-1.0.tcl after every port sync to have 4.2.3 version there too. Basically, you need to revert changes from: https://github.com/macports/macports-ports/commit/fcccc139830aaea518b0066ac95644e452047199

To skip updating dependencies of anything, add -n argument, like: sudo port -v -n install portname.

This has been fixed for 10.5–10.6. Tiger remains broken due to another issue: https://trac.macports.org/ticket/67310
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
@barracuda156 Are the only R packages on macports the ones that include C/FORTRAN code and thus need compilation? Or are pure-R packages provided through macports too?

Just curious because I actually maintain a package on CRAN and it isn’t there (eyelinker, for importing/parsing data files from EyeLink eye trackers), but it’s pure R so would presumably run fine if all its dependencies are there.

Dunno if relevant for you, but I have added another package for EyeLink too: https://ports.macports.org/port/R-eyelinkReader/details
 

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
UPDATE: All should be good now.
If anyone installed R ports that use Fortran earlier and gets an error re variants mismatch now, this will fix it:

sudo port -v upgrade --enforce-variants PORTNAME -gfortran +gcc12

UPDATE2: Leopard variant is set to gcc7, so that is also fixed. THOSE WHO USE A CUSTOM LOCAL REPO WITH NEW GCC/LIBGCC, PLEASE CHANGE THE SETTING ACCORDINGLY (I mean, you could still use +gcc7, but rather not).
 
Last edited:
  • Like
Reactions: pc297

barracuda156

macrumors 68020
Original poster
Sep 3, 2021
2,325
1,535
We got something about 4500 R packages now in Macports. Perhaps a better coverage than any Linux and certainly better than any BSD.

Everthing works on PowerPC.
(Strictly speaking, aside of 2 packages. Two are Intel-only.)

Anyone doing science or academic stuff? PowerMacs can be of use now!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.