Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to increase the limit for max.print in R

Tags:

r

I am using the Graph package in R for maxclique analysis of 5461 items.

The final output item which I get is very long, so I am getting the following warning:

reached getOption("max.print") -- omitted 475569 rows

Can somebody please provide me the pointers with how to increase the limit for max.print.

like image 230
Jay Avatar asked Jul 20 '11 07:07

Jay


People also ask

How do I increase print limit in R?

Before importing any large data or performing any calculation that may result in big output, we can change the limit of the printing by using max. print option.

What does Getoption Max Print mean in R?

This message appears when you attempt to print more than 1000 values at once in RStudio. By default, RStudio only lets you print 1000 values at once.


2 Answers

Use the options command, e.g. options(max.print=1000000).

See ?options:

 ‘max.print’: integer, defaulting to ‘99999’.  ‘print’ or ‘show’       methods can make use of this option, to limit the amount of       information that is printed, to something in the order of       (and typically slightly less than) ‘max.print’ _entries_. 
like image 105
NPE Avatar answered Oct 04 '22 03:10

NPE


See ?options:

options(max.print=999999) 
like image 41
rcs Avatar answered Oct 04 '22 05:10

rcs