Metric-Affine f(R) Gravity
In metric-affine f(R) gravity, one generalizes things even further, treating both the metric and connection independently, and assuming the matter Lagrangian depends on the connection as well.
Read more about this topic: F(R) Gravity