[R-SIG-Mac] rgl in R version 4.1.1 Patched (2021-08-13 r80752)

Prof Brian Ripley r|p|ey @end|ng |rom @t@t@@ox@@c@uk
Thu Aug 19 10:36:18 CEST 2021

On 19/08/2021 04:56, Richard M. Heiberger wrote:
>   R version 4.1.1 Patched (2021-08-13 r80752)
>   aarch64-apple-darwin20
>> library(rgl)
> Error in dyn.load(dynlib <- getDynlib(dir)) :
>    unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so':
>    dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so, 6): Symbol not found: _hb_buffer_add_utf8
>    Referenced from: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so
>    Expected in: flat namespace
>   in /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rgl/libs/rgl.so

This is short of details: where did you get that R from and how did you 
install rgl?

My best guess is that that the CRAN binary package needs rebuilding (and 
maybe others that use freetype2).  It seems that rgl does not itself 
link to libfreetype2, and in recent builds that depends on libharfbuzz 
(my guess being that 4.1.0 was not using such a build. 4.1.1 is).

A source-package install would probably work if you get the libs needed 
from https://mac.r-project.org/libs-arm64/.

Brian D. Ripley,                  ripley using stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford

More information about the R-SIG-Mac mailing list