Set R history size