Page 1 of 1

[Solved] tcl related issue in R

Posted: 15. Oct 2018, 06:44
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

Re: tcl related issue in R

Posted: 15. Oct 2018, 13:07
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.

Re: tcl related issue in R

Posted: 23. Oct 2018, 07:47
by travis82
Sorry for this late response.
I rebuilt R using --with-tcltk and could install tcltk2 package. The problem solved.