Cannot install aplpack - tcl/tck support files

Everything related to the development of modules in jamovi
Post Reply
Anna9
Posts: 11
Joined: Mon Mar 27, 2023 2:12 pm

Cannot install aplpack - tcl/tck support files

Post 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!
User avatar
jonathon
Posts: 2627
Joined: Fri Jan 27, 2017 10:04 am

Re: Cannot install aplpack - tcl/tck support files

Post 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
Anna9
Posts: 11
Joined: Mon Mar 27, 2023 2:12 pm

Re: Cannot install aplpack - tcl/tck support files

Post 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
User avatar
jonathon
Posts: 2627
Joined: Fri Jan 27, 2017 10:04 am

Re: Cannot install aplpack - tcl/tck support files

Post by jonathon »

if that works, that's totally what i would do!

jonathon
Post Reply