[R-pkg-devel] How to fix Tcl/Tk Error on Mac OS build
Dominic Comtois
dom|n|c@comto|@ @end|ng |rom gm@||@com
Tue Apr 26 04:45:41 CEST 2022
I was asked by CRAN to fix some problems appearing in my summarytools
<https://cran.r-project.org/web/checks/check_results_summarytools.html>'
package build checks. Trivial email problems aside, on the summary page
<https://www.r-project.org/nosvn/R.check/r-release-macos-arm64/summarytools-00check.html>
for the Mac OS build, I see:
[...]
checking whether package ‘summarytools’ can be installed ... [1s/1s] ERROR
Installation failed.
See
‘/Volumes/Builds/packages/big-sur-arm64/results/4.2/summarytools.Rcheck/00install.out’
for details.
[...]
On the details page
<https://www.r-project.org/nosvn/R.check/r-release-macos-arm64/summarytools-00install.html>,
I see:
[...]
** byte-compile and prepare package for lazy loadingtcltk DLL is
linked to '/opt/R/arm64/lib/libtk8.6.dylib'
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk libraries are missing: install the Tcl/Tk component
from the R installerExecution halted
ERROR: lazy loading failed for package ‘summarytools’
[...]
Tcl/Tk is used by some functions to allow users to bring up an "open
file...", & "save file..." dialogs & message boxes, as well as the
tclvalue() function. In my NAMESPACE, I have:
importFrom(tcltk,tclvalue)
importFrom(tcltk,tk_messageBox)
importFrom(tcltk,tkgetOpenFile)
importFrom(tcltk,tkgetSaveFile)
Also, a prerequisite is to have XQuartz <https://www.xquartz.org/>
installed on Mac OS.
Summarytools has been around for a while, and I never had this problem
before. And since I don't have a Mac machine, I'm not sure how to go about
this. A Google search reveals that several other packages have the same
issue. But I wasn't able to find the root cause nor a proper solution. Any
tips / pointers would be greatly appreciated.
Thanks,
Dominic Comtois
summarytools
<https://cran.r-project.org/web/packages/summarytools/index.html> author &
maintainer
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list