how to increase the limit for max.print in 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.

1

5 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_.
3

See ?options:

options(max.print=999999)
2

You can use the options command to change the max.print value for the value limit you want to reach. For example:

options(max.print = 1000000)

There you can change the value of the max.print in R.

set the function options(max.print=10000) in top of your program. since you want intialize this before it works. It is working for me.

I fixed it just now. But it looks busty. Anyone make it simple please?

def list_by_tag_post(request):
# get POST
all_tag = request.POST.getlist('tag_list')
arr_query = list(all_tag)
for index in range(len(all_tag)): tag_result = Tag.objects.get(id=all_tag[index]) all_english_text = tag_result.notes.all().values('english_text', 'id') arr_query[index] = all_english_text
for index in range(len(arr_query)): all_english_text = all_english_text | arr_query[index]
# Remove replicated items
all_english_text = all_english_text.order_by('id').distinct()
# render
context = {'all_english_text': all_english_text, 'all_tag': all_tag}
return render(request, 'list_by_tag.html', context)
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like