Gaps and pseudogaps in perovskite rare earth nickelates