Page 1 of 1

Cannot install aplpack - tcl/tck support files

Posted: Tue Oct 17, 2023 2:39 pm
by Anna9
Hi, I'd like to generate an iconplot in the jamovi module that I am developing. The function iconplot() is included in the aplpack R package. When I try to install aplpack, during the run of jmvtools::install() the following error message appears and the execution is halted:

Code: Select all

 Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: NULL
  error: Tcl/Tk support files were not installed
Execution halted 
It states that Tcl/Tk support files are not installed. An old topic cited this problem: viewtopic.php?t=1204, but in this case I would like to install aplpack.

Is there a way I can solve this installation error?

Thanks in advance!

Re: Cannot install aplpack - tcl/tck support files

Posted: Tue Oct 17, 2023 10:08 pm
by jonathon
hi,

i'm not sure we can solve this. tcl/tk is an *ancient* library, and quite difficult to work with.

is there an alternative to aplpack you could use?

jonathon

Re: Cannot install aplpack - tcl/tck support files

Posted: Mon Oct 30, 2023 6:21 pm
by Anna9
Hi,

thank you very much for your help, as regards the function iconplot() from aplpack, I tried to copy and paste the definition of the function from aplpack into the .b R file of my module. In this way the module can generate the icon plot, but it may not be the proper way to solve this problem (also considering that the definition includes several lines of code).

I don't know if there are alternatives to aplpack to generate icon plots, but I will research the topic

Re: Cannot install aplpack - tcl/tck support files

Posted: Tue Oct 31, 2023 12:14 am
by jonathon
if that works, that's totally what i would do!

jonathon