conditional.Rd
Function to create a wrapper version of the input function that run according to a logical condition. Useful for conditional pipelines. see https://community.rstudio.com/t/conditional-pipelines/6076/2
conditional(fun)
function