The tcltk package is an embedding of Tcl/Tk in R. Use tcl and tk tags for the actual Tcl and Tk software packages themselves.
Questions tagged [tcltk]
74 questions
10
votes
2 answers
How to write the expect script to install mariadb?
Environment: centos7 + mariadb5.5.64.
Let me show the installation info on screen when to run mysql_secure_installation.
# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION…

showkey
- 482
- 42
- 140
- 295
5
votes
2 answers
R package geoR won't install on macOS despite available tcl-tk on the system
I've installed R and RStudio via brew. For a project I need a function from the R library geoR which in turn is dependent on tcl-tk. I installed this as well via brew: brew install tcl-tk. However, trying to install geoR still leads to the error…

Sander W. van der Laan
- 790
- 8
- 26
4
votes
3 answers
Updating tcl/tk version of Homebrew python3 on macOS
My environment:
macOS 10.13
python 3.7.1 from Homebrew
I'm having lots of Tcl/TK quirks on the stock Tcl/TK 8.5 under /System/Library/Frameworks/Tcl.framework/Versions/8.5/, and would like to upgrade my Tcl/TK.
But with this question I couldn't find…

kakyo
- 10,460
- 14
- 76
- 140
4
votes
2 answers
tcltk Dialog Boxes Appear Underneath RStudio/Shiny Windows
I am currently programming my first shiny application and I am having some difficulty with some of the more subtle user interface features. I am using the tcltk library to import a number of simple dialog boxes for the user to select local…

Joe Chipperfield
- 43
- 4
3
votes
1 answer
How to listen to DDE data continuously
Looking for either a python or R solution.
In R, I am able to retrieve DDE data into R from a third-party application using the following request:
library(tcltk2)
tk2dde.request(service = 'prortdde',topic='MNQXXXX', item='last')
"12262.75"
I'd…

gaut
- 5,771
- 1
- 14
- 45
3
votes
1 answer
R - Update text entry box (tkentry) based on value selected in dropdown (ttkcombobox)
I'm still quite new to R and tcltk / GUI programming.
Here is a simple GUI and what I would like to happen is for the text entry box to change to a different value depending on what the user selects from the dropdown menu.
I've tried searching for…

Jimbo Mahoney
- 220
- 2
- 9
2
votes
2 answers
Fatal Error in R when using tcltk::tkentry
I recently upgraded my R to 4.0.1 from 3.4.1 because I needed to use the TSP package and hadn't updated R in a while. TSP only requires greater than 3.5.0 but I figured I would install the latest version, right?
Now, I'm trying to run code I use…

Sescopeland
- 315
- 2
- 16
2
votes
0 answers
git gui blame causes 'CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no schema' errors
This is on latest OSX with the latest version of git.
The issue is that when you do 'git gui blame', a highly annoying list of errors fills your terminal window, to wit:
CFURLCopyResourcePropertyForKey failed because it was passed an URL which has…

Rob
- 4,404
- 2
- 32
- 33
2
votes
1 answer
MessageBox in R
I would like to create a messagebox using R. A short research suggested the tcltk package. The tcltk::tk_messageBox() command actually worked the first time I tried it.
However, I then I updated to Windows 10, switched to R 3.4.3, using RStudio…

GerasimosPanagiotakopoulos
- 577
- 7
- 22
2
votes
0 answers
Invalid command name "tk_chooseDirectory" error
I am using bioconductor for WES pipeline and I am using tk_choose.dir for selection of directory (and store it for further use) where user has stored input files. Here the command lines
library(tcltk)
dataDir <- dirname(tk_choose.dir(default = " ",…

Lot_to_learn
- 590
- 2
- 9
- 21
2
votes
1 answer
Overriding event in tcltk tktext in R
I'm using a tktext element with tcltk package in R.
I would like to achieve that when you press the Tab Key a custom function gets executed but no actual tab space added to text.
Using tkbind(tkTextField, "", function(x)…

StanW
- 93
- 5
1
vote
1 answer
TCL Error: wrong # args: should be "source ?-encoding name? fileName"
I am new to tcl
I wrote a code as ...
#!/usr/bin/tclsh
# get all co-ordinates of cell from arguments
# if suffiecient arguments are not there then print error and exit
# Calculate area of cell
lassign $argv a b c d e f g h
if {$argc != 8} {
puts…

Rahul Kumar
- 11
- 2
1
vote
0 answers
TCL/TK: Is it possible to create a new folder or edit a folder in the "tk_getSaveFile" pop-up view?
Is it possible to create a new folder or edit a folder in the "tk_getSaveFile" pop-up view? Or, is there any package that supports this? thanks

Jimmy
- 135
- 2
- 10
1
vote
1 answer
tcl/tk - dependency library issue in multifile starkit
I am trying to create a starkit consisting of multiple tcl source files, which can be executed without problem on my machine with wish. However, on trying to do the same with tclkit, I got this error from one of the second level source files sourced…

SuibianP
- 99
- 1
- 11
1
vote
0 answers
R error in fPortfolio package: could not find function "tclVar"
I load fPortfolio with a pre-installed data frame attached:
library(fPortfolio)
library(PerformanceAnalytics)
data("edhec")
rets <- edhec
# compute the tangency portfolio
tp <- tangencyPortfolio(as.timeSeries(edhec))
frontier <-…

B D 100
- 57
- 5