Is there any command in R console which behaves same as "more" command in Linux? Consider this
>x=list(seq(100000), seq(100000))
>x
It displays everything at one go and shows message at the end "reached getOption("max.print")". Scrolling back to top doesn't show me the first values. I need a command like more(x) which will show more and more by pressing space bar.
If R is ready to accept commands, the R console shows a > prompt. If it receives a command (by typing, copy-pasting or sent from the script editor using Ctrl-Enter ), R will try to execute it, and when ready, show the results and come back with a new > -prompt to wait for new commands.
If a plus sign ("+") appears while in the console, it means that R is wanting you to enter some additional information. Press escape ("esc") and hit return to get back to the ">" prompt.
An R script is just a plain text file that you save R code in. You can open an R script in RStudio by going to File > New File > R script in the menu bar. RStudio will then open a fresh script above your console pane, as shown in Figure 1-7.
Would ?page
do the trick? e.g., page(list(a = rnorm(1000), b=rnorm(1000)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With