This seems to be caused by a missing _attribute\_hidden_ before the function declaration in `R`'s source code (see [here](https://github.com/wch/r-source/blob/trunk/src/main/altrep.c#L226-L229))