Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7573075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:05:23+00:00 2026-05-30T16:05:23+00:00

Quick question – I’m using the menu function in R with graphics=TRUE . For

  • 0

Quick question – I’m using the menu function in R with graphics=TRUE.
For me, as I’m on linux, this results in a tcltk dialogue being shown. (You know how when you do install.packages('some_package') R pops up a window telling you to select which CRAN mirror you wish to remove? That’s what I mean).

Sometimes after I make my selection (which works fine), the window then refuses to disappear or respond to any sort of clicks – I can continue my R session as normal but this window will hang around and despite my efforts to shut it down (via the close ‘x’ button in the corner, or via the ‘OK’ and ‘Cancel’ buttons on the dialogue itself).

Is there a way I can destroy this window, given that I don’t have a handle to it? I’m looking for an equivalent of graphics.off for tcltk.

Additionally, I’ve noted that I often get an error [tcl] grab failed: window not viewable. when using menu(..,graphics=TRUE), so this could be related.

cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:05:25+00:00Added an answer on May 30, 2026 at 4:05 pm

    Stuff that only happens sometimes is hard to reproduce, and is often due to bugs, and hard to figure out without a complete spec of your machine. However, I can reliably get similar behaviour and I can fix it:

    > library(tcltk)
    Loading Tcl/Tk interface ... done
    > menu(letters[1:5],graphics=TRUE)
    ^C
    

    By hitting Control-C at this point I get my R prompt back and an unresponsive dialog box, which I don’t have a handle on. Using the window manager controls on it do nothing, resizing it doesn’t update the window. So…

    > tclServiceMode(TRUE)
    [1] FALSE
    

    then it wakes up. Then I can either close the dialog conventionally,or do:

    > tkdestroy(".1")
    Error: $ operator is invalid for atomic vectors
    

    which gets rid of it with an error I don’t understand. The “.1” is the window path, which is the same as the default window title – but not if you’ve set a name on your menu. In which case… Ummm there’s probably a way to look it up from the name, but anyway, once you’ve set the service mode to TRUE you can click your way back to desktop tidyness.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

quick question. Would this always be true? int i = ...; double d =
quick question: I'm creating random polygons using either the patch() or the fill() function
quick question, I have a <hr> and this script: <script type=text/javascript > $(function ()
Quick question about the TransactionScope object. Found this on the internet: When you access
Quick question: is this kind of nesting possible? An if statement first passing a
Quick question: I'm using jquery ajax to call a page that returns some json
Quick question, having a look around it seems this is the case, but it
Quick question here about short-circuiting statements in C#. With an if statement like this:
quick question. Is there any way to make this possible? int array [] =
Quick question, I found answers close to this but nothing that helps me. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.