Julie Royster
2014-Feb-22 21:57 UTC
[R] seeking alternative method to copy a large section of my R program
Is there any way I can insert markers at the beginning and end of a large section of R statements and then copy all text in between to clipboard? I have trouble scrolling to select long sections, so if there is another way I would like to know it! Julie (for husband Larry) [[alternative HTML version deleted]]
Jeff Newmiller
2014-Feb-23 06:34 UTC
[R] seeking alternative method to copy a large section of my R program
This is a function of the editor you use and the operating system you use, neither of which is on topic here. That said, many popular GUI editors allow you to select by holding the shift key down while moving the cursor with arrow keys. Note that in the long run using the source function to have R process a whole file is much easier to remember how to do later than remembering which chunks of code to copy and paste. In addition, sometimes the amount of text that the clipboard can hold will be less than you want to run, leading to mysterious error messages from R. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On February 22, 2014 1:57:14 PM PST, Julie Royster <jsdroyster at nc.rr.com> wrote:>Is there any way I can insert markers at the beginning and end of a >large >section of R statements and then copy all text in between to clipboard? > >I have trouble scrolling to select long sections, so if there is >another way >I would like to know it! > >Julie (for husband Larry) > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
David Winsemius
2014-Feb-23 06:36 UTC
[R] seeking alternative method to copy a large section of my R program
On Feb 22, 2014, at 1:57 PM, Julie Royster wrote:> Is there any way I can insert markers at the beginning and end of a large > section of R statements and then copy all text in between to clipboard? > > I have trouble scrolling to select long sections, so if there is another way > I would like to know it!Each interface is going to be a bit different, but on both the Mac and Windoze I can position the cursor at one end , hold down the shift-key, scroll to the other end and release the shift-key and I will have the target ready for either an Edit/Cut or a cmd-C/ctrl-C. -- David Winsemius Alameda, CA, USA