[Solved] tcl related issue in R

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
travis82
Posts: 29
Joined: 17. Jan 2015, 05:48

[Solved] tcl related issue in R

Post by travis82 »

Hi
I'm trying to install tcltk2 package in R but got this error:

Code: Select all

Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error: package or namespace load failed for ‘tcltk’:
 .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Tcl/Tk support is not available on this system
I have installed all packages in tcl group from Slackware repository but the problem still exist. Any help would be appreciated

PS: I'm using R-3.5.1
Last edited by travis82 on 23. Oct 2018, 07:48, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: tcl related issue in R

Post by gapan »

The R package in the repos was built "--without-tcltk". You'll have to rebuild it specifying "--with-tcltk" instead, if you want that functionality.
Image
Image
travis82
Posts: 29
Joined: 17. Jan 2015, 05:48

Re: tcl related issue in R

Post by travis82 »

Sorry for this late response.
I rebuilt R using --with-tcltk and could install tcltk2 package. The problem solved.
Post Reply