Charge within radius r is
q=∫r0ρ0[1−rR]4πr2dr
=4πρ0∫r0(r2−r3R)dr
=4πρ0(r33−r44R)
For r < R,
E=kqr2=ρ0r3ε0[1−3r4R]