yihui / formatR

Format R Code Automatically
https://yihui.org/formatr/
255 stars 52 forks source link

tidy.gui() font button throws error #23

Closed Dasonk closed 12 years ago

Dasonk commented 12 years ago

I'm running Ubuntu 12.04 currently. If I use tidy.gui and then click on the font button at any point this is what I get:

> tidy.gui()
> Error in widget$getGroup : $ operator not defined for this S4 class

It creates a new window with a frame named "Size" but doesn't populate that window with anything. It's not a big concern for me but I thought you might want to know.

Here's my sessionInfo

> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i686-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] gWidgetsRGtk2_0.0-81 gWidgets_0.0-50      formatR_0.6         
[4] local_1.0            devtools_0.8        

loaded via a namespace (and not attached):
 [1] digest_0.5.2    evaluate_0.4.2  httr_0.1.1      memoise_0.1    
 [5] parallel_2.15.1 plyr_1.7.1      RCurl_1.95-0    RGtk2_2.20.25  
 [9] stringr_0.6.1   tools_2.15.1    whisker_0.1  
yihui commented 12 years ago

Should be fixed now. Thanks! There has been some changes in gWidgets for gtext() which I did not notice.