f(R) actions, cosmic acceleration and local tests of gravity