Refresh Workspace from Command Line

daugh016's Avatar

daugh016

06 Jul, 2012 12:27 PM

Is there a function to refresh the workspace from the command line or a script?

I making a GUI using gWidgets but when the function is finished, I have to press the refresh button in the top corner to see the results from my assignment statement.

Thanks,

BD

  1. Support Staff 2 Posted by Josh Paulson on 07 Jul, 2012 12:35 PM

    Josh Paulson's Avatar

    Brad,

    Thanks for the suggestion and I've added it to our feature request list.

    Josh

  2. Support Staff 3 Posted by Josh Paulson on 07 Jul, 2012 12:38 PM

    Josh Paulson's Avatar

    Brad,

    Taking a second look, can you give me an example of such a function that doesn't initially show up when you define it? It's be great to have a simple example to test it not showing up in the workspace. This is likely a bit more of a bug and maybe we can fix it.

    Josh

  3. 4 Posted by daugh016 on 09 Jul, 2012 11:40 AM

    daugh016's Avatar

    Josh,

    Here is an example of something I was doing where the YYY would only show up in the workspace after I reloaded the workspace:

    XXX <- function(){
      y <- 9
     return y
    }
    
    descriptionTickers      <- "Import Ticker List: "
    labelTickers            <- "Tickers"
    
     CreateForm <- function() { 
      options(guiToolkit = "tcltk")
    
      win  <- gwindow("Orange Model v2.0", visible = FALSE,width=50,hieght=1000)
    
      frame_for_tickers           <- gframe("Ticker",     container = win)
    
     group_for_tickers      <- ggroup(horizontal = TRUE, container=frame_for_tickers)
    
     lbl_for_tickers    <- glabel(descriptionTickers, container = group_for_tickers) 
     button_for_tickers <- gbutton(labelTickers,container=group_for_tickers,   handler      =   function(h,...) 
         {
           YYY <<-  XXX()
         }
       )
     }
    
     CreateForm()
    
  4. Support Staff 5 Posted by Josh Paulson on 09 Jul, 2012 09:25 PM

    Josh Paulson's Avatar

    Brad,

    Thanks and I've made a note of this. We're planning to overhaul the workspace down the road anyway so perhaps this will be taken care of at this point too.

    Josh

  5. Josh Paulson closed this discussion on 09 Jul, 2012 09:25 PM.

Comments are currently closed for this discussion. You can start a new one.