Skip to content

Block indent/un-indent crashes R 3.0 RC

16 messages · Brian Ripley, Rob Goedman, Beale, Holly (NIH/NHGRI) [F] +4 more

#
Using the GUI indent/un-indent with more than one line of code selected crashes R for the version below.  Modifying only one line does not.

Thanks, Bryan

[R.app GUI 1.53 (6437) x86_64-apple-darwin9.8.0]
R Under development (unstable) (2013-02-03 r61829)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] sos_1.3-5  brew_1.0-6
#
On 06/02/2013 01:22, Bryan Hanson wrote:
There is no '3.0 RC' (and never will be: the version will be 3.0.0.  See 
the posting guide).

Why do you think this is anything to do with R?  It sounds like an issue 
for R.app revision 6437 which is also supplied with the R-patched 
snapshots, to be 2.15.3 much sooner than 3.0.0.  Please try the latter.

  
    
#
I experience the problem intermittently. I can't reproduce it. 

OSX:
10.7.5
R version 2.15.2 (2012-10-26)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] MASS_7.3-22     reshape_0.8.4   plyr_1.7.1      scales_0.2.2    ggplot2_0.9.2.1

loaded via a namespace (and not attached):
 [1] colorspace_1.2-0   dichromat_1.2-4    digest_0.6.0       grid_2.15.2        gtable_0.1.1      
 [6] labeling_0.1       memoise_0.1        munsell_0.4        proto_0.3-9.2      RColorBrewer_1.0-5
[11] reshape2_1.2.1     stringr_0.6.1

        
On Feb 6, 2013, at 10:45 AM, Robert J Goedman wrote:

            
#
Rob,

Should I upgrade my software to 10.8 / Mountain Lion?

Pablo E Serrano Aybar
HPB Fellow
University of Toronto
#
The keyboard commands cause the errors for me.
On Feb 6, 2013, at 11:37 AM, Bryan Hanson wrote:

            
#
Thanks Holly & Brian,

I've been able to reconstruct the problem and I think it happens (only?) inside a more complex setup, e.g.:

If a new doc is opened and 2 lines are entered:

a <- 1:3
print(a)

no problems.

But:

for (i in 1:3) {
a <- 1:3
print(a)
}

will crash R.app if both lines are indented/un-indented.

I believe the crash happens when the parsing for functions is initiated.

Rob J. Goedman
goedman at icloud.com
On Feb 6, 2013, at 8:41 AM, "Beale, Holly (NIH/NHGRI) [F]" <holly.beale at nih.gov> wrote:

            
#
Thanks Rob and everyone working on this.

I had made up a MWE last night to try to find some combos that cause the problem.  I did not share that because in my testing it is much more general that what you report.  The only commonality I could find is that more than one line is selected.  The details of those lines didn't matter, for me.

Bryan
On Feb 6, 2013, at 11:54 AM, Robert J Goedman <goedman at icloud.com> wrote:

            
#
Hi,

Bryan has right, selecting lines causes the crash. Just fixing it. I'll send a patch to Simon ASAP.

Thanks for the reports!

Best,
--Hans
#
Hi Hans,

Thanks for taking a look.

Bryan has convinced me it not just inside a pair of {} by sending me below file he produced. That crashes R.app indeed as well.

I continue to believe it happens when the file is parsed, at least that seems to be what happens in XCode.

Rob J. Goedman
goedman at icloud.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: indent_prob.R
Type: application/octet-stream
Size: 91 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130206/057d4a9b/attachment.obj>
-------------- next part --------------
On Feb 6, 2013, at 10:50 AM, Hans-J?rg Bibiko <bibiko at eva.mpg.de> wrote:

            
#
Patch committed. I'm away with limited possibilities, so please check tonight's build if it works ...

Thanks,
Simon
On Feb 6, 2013, at 2:47 PM, Hans-J?rg Bibiko wrote:

            
#
And the nightly build version  also works! I tested R.app rev 6438 for R 3.0.x 64 bit on ML.

Rob J. Goedman
goedman at icloud.com
On Feb 6, 2013, at 12:35 PM, Robert J Goedman <goedman at icloud.com> wrote: