MDLD/differentiable (R)