> On Oct 29, 2015, at 10:16 AM, Victor Tian <tianx...@gmail.com> wrote: > > Hi there, > > Often times, I would run R in the terminal when the task is computationally > intensive and a nice-looking UI is less desired. > > However, pasting a large chunk of code into the terminal often times ends > up being messed up. In Python, the same problem would happen, however, > iPython provides a small functionality called magic word such as %paste > that can help paste the code neatly into the terminal. > > I'm wondering if there's a similar functionality in R. > > Thanks, > > -- > *Xu Tian*
Rather than pasting a large amount of code into the terminal, put the code into a text file (e.g. MyCode.R) and use ?source i your terminal session, to read in the file to then be parsed and run. Regards, Marc Schwartz ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.