Platform: macOS 14.6.1 (Sonoma), Intel x86_64 · Homebrew 6.x · R 4.6.1 · sf linked to GDAL via Homebrew
If you landed here from an error like Library not loaded: libx265.216.dylib or
Symbol not found: _x265_api_get_216 when loading sf (or terra, gdal, anything
that pulls in libheif), this gist explains what happened, the fix that worked, and
the alternative approaches.
Full error I got: