GitHub Actions Check failing due to example only on Mac


Hoping someone might have thoughts/suggestions on weird issue I'm running into. I use GitHub actions as part of my release checklist for my R package which is on CRAN. It currently runs the checks for PRs on:
macos-latest (release)
windows-latest (release)
ubuntu-latest (devel)
ubuntu-latest (release)
ubuntu-latest (oldrel-1)

I've never really run into any issues. However, when running checks on my newest version update I'm running into weird issue (PR can be found here: Release/2.0.0 by samuel-marsh · Pull Request #138 · samuel-marsh/scCustomize · GitHub). All of the checks pass except for macos-latest (release). When I go through the log it says the error comes from one of the function examples in documentation.

This seems to be weird error because this error doesn't occur on any of the other platforms (nor locally on my mac) and it is not a new function/example and has previously passed checks on macos.

The other weird thing is that this function is very simple under the hood, here is link to it: in current CRAN version: So that kinda of further confuses me as to why it's failing and only failing on single platform.


EDIT: I should note that the obvious solution is to just change the example not to run but hoping to avoid that.