The note says "It’s best practice for your function to either return an object or have a side-effect, but not both". Is this always true? E.g. you might want to return an object and display something (e.g. print a summary, display a plot, print a message).