On complexity for F (R) and critical gravity