min metabolism in r