[R-SIG-Mac] R.app spontaneously switching windows during editing

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Mon Aug 16 03:49:34 CEST 2021


John,

I tried to reproduce on macOS 11.4, but failed to so far. Can you send us the details on your setup, e.g., is this a MacBook or a mini etc? Also what exactly is the sequence - i.e. what were you doing and what happened?

One thing I noted, however, is that if you use a trackpad have tap-to-click enabled, it's amazingly easy to accidentally click on another windows while you're typing on MacBooks since your hands are hovering very close to the touch pad. To see if that makes a difference, disable the tap-to-click in the trackpad system preferences.

FWIW the behavior in the text editing is defined by Apple and the OS, so things like replacing the selection are UI standards by Apple. You can always use Undo in case you select and replace something inadvertently.

Thanks,
Simon



> On 16/08/2021, at 7:45 AM, Simon Urbanek <simon.urbanek using r-project.org> wrote:
> 
> 
> John,
> 
> Thank you for the report. We have not changed anything recently so it's likely some odd behaviour by the macOS. I'll try to reproduce and will get back to you.
> 
> Cheers,
> Simon
> 
> 
> 
>> On Aug 15, 2021, at 14:43, John Helly via R-SIG-Mac <r-sig-mac using r-project.org> wrote:
>> 
>> Aloha.
>> 
>> Apparently since I switched to Big Sur, R has begun spontaneously 
>> switching the active window from console to editor back and forth for no 
>> obvious reason.  This disrupts editing and has almost destroyed whole 
>> editing files due to the deletion of highlighted lines (a different 
>> behavior that has always been dangerous but is exacerbated by the 
>> window-switching).
>> 
>> I've looked at the default settings in the Preferences and can't see or 
>> change anything that seems to affect this behavior. I've tried turning 
>> off everything that might be doing it (e.g., matching delimiters) and I 
>> can't find anything or anyone else that complains about this. Am I the 
>> only one?
>> 
>> Any suggestions for debugging this would be welcome.  sessionInfo below.
>> 
>> J. Helly.
>> 
>> -- John Helly, University of California, San Diego / San Diego 
>> Supercomputer Center / Scripps Institution of Oceanography / 760 840 
>> 8660 mobile / http://www.sdsc.edu/~hellyj ORCID ID: 
>> orcid.org/0000-0002-3779-0603
>> 
>> 
>> 
>>> sessionInfo()
>> R version 4.1.0 (2021-05-18)
>> Platform: x86_64-apple-darwin17.0 (64-bit)
>> Running under: macOS Big Sur 11.4
>> 
>> Matrix products: default
>> BLAS: 
>> /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
>> 
>> 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 base
>> 
>> other attached packages:
>> [1] Hmisc_4.5-0      Formula_1.2-4    survival_3.2-11 lattice_0.20-44  
>> runner_0.4.0     GGally_2.1.2 rpart.plot_3.0.9
>> [8] rpart_4.1-15     stargazer_5.2.2  texreg_1.37.5 factoextra_1.0.7 
>> forcats_0.5.1    stringr_1.4.0    dplyr_1.0.6
>> [15] purrr_0.3.4      readr_1.4.0      tidyr_1.1.3 tibble_3.1.2     
>> tidyverse_1.3.1  tables_0.9.6     reshape2_1.4.4
>> [22] plyr_1.8.6       ggplot2_3.3.5
>> 
>> loaded via a namespace (and not attached):
>> [1] fs_1.5.0            lubridate_1.7.10    RColorBrewer_1.1-2 
>> httr_1.4.2          tools_4.1.0         backports_1.2.1
>> [7] utf8_1.2.1          R6_2.5.0            DBI_1.1.1 
>> colorspace_2.0-1    nnet_7.3-16         withr_2.4.2
>> [13] tidyselect_1.1.1    gridExtra_2.3       curl_4.3.1 
>> compiler_4.1.0      cli_2.5.0           rvest_1.0.0
>> [19] htmlTable_2.2.1     xml2_1.3.2          labeling_0.4.2 
>> scales_1.1.1        checkmate_2.0.0     digest_0.6.27
>> [25] foreign_0.8-81      rio_0.5.27          base64enc_0.1-3 
>> jpeg_0.1-8.1        pkgconfig_2.0.3     htmltools_0.5.1.1
>> [31] dbplyr_2.1.1        htmlwidgets_1.5.3   rlang_0.4.11 
>> readxl_1.3.1        rstudioapi_0.13     generics_0.1.0
>> [37] farver_2.1.0        jsonlite_1.7.2      zip_2.2.0 
>> car_3.0-11          magrittr_2.0.1      Matrix_1.3-3
>> [43] Rcpp_1.0.6          munsell_0.5.0       fansi_0.5.0 
>> abind_1.4-5         lifecycle_1.0.0     stringi_1.6.2
>> [49] carData_3.0-4       grid_4.1.0          parallel_4.1.0 
>> ggrepel_0.9.1       crayon_1.4.1        haven_2.4.1
>> [55] splines_4.1.0       hms_1.1.0           knitr_1.33 
>> ps_1.6.0            pillar_1.6.1        ggpubr_0.4.0
>> [61] ggsignif_0.6.2      reprex_2.0.0        glue_1.4.2 
>> latticeExtra_0.6-29 data.table_1.14.0   modelr_0.1.8
>> [67] png_0.1-7           vctrs_0.3.8         cellranger_1.1.0 
>> gtable_0.3.0        reshape_0.8.8       assertthat_0.2.1
>> [73] openxlsx_4.2.4      xfun_0.23           broom_0.7.6 
>> rstatix_0.7.0       cluster_2.1.2       ellipsis_0.3.2
>>> 
>> 
>> -- 
>> John Helly, University of California, San Diego / San Diego Supercomputer Center / Scripps Institution of Oceanography / 760 840 8660 mobile / http://www.sdsc.edu/~hellyj
>> ORCID ID: orcid.org/0000-0002-3779-0603
>> 
>> 
>> 	[[alternative HTML version deleted]]
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 



More information about the R-SIG-Mac mailing list