f(R)gravity without a cosmological constant