Adam Hillier
2024-Jul-13 15:04 UTC
[R] Problem loading BiodiversityR, Error: package ‘tcltk’ could not be loaded
Hi, I get the following error when trying to load the BiodiversityR package> library(> library(BiodiversityR)Loading required package: tcltk tcltk DLL is linked to '/opt/X11/lib/libX11.6.dylib' Error: package or namespace load failed for ?tcltk?: .onLoad failed in loadNamespace() for 'tcltk', details: call: fun(libname, pkgname) error: X11 library is missing: install XQuartz from www.xquartz.org Error: package ?tcltk? could not be loaded In my package library I can see ?tcltk2? but not ?tcltk?. Have see a few others online facing the same issue. Can you help ? Thanks. Adam
Ivan Krylov
2024-Jul-14 10:16 UTC
[R] Problem loading BiodiversityR, Error: package ‘tcltk’ could not be loaded
? Sat, 13 Jul 2024 16:04:17 +0100 Adam Hillier <adam.c.hillier at gmail.com> ?????:> error: X11 library is missing: install XQuartz from www.xquartz.orgDoes the problem go away if you install XQuartz from www.xquartz.org? "R installation and administration" section 4 also documents the requirement to have XQuartz installed in order to use the tcltk package (which is part of R itself) and the x11() device: https://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-macOS For macOS-specific problems, r-sig-mac at r-project.org may give you more precise advice. If installing XQuartz doesn't help, make sure to provide your sessionInfo() output. -- Best regards, Ivan