“The Falcon had always been cantankerous, its three droid brains quarreling endlessly unless forced to work together. Still, R2-D2 usually got along with the ship well enough. For one thing, none of the brains could stand C-3PO; for another, one of them had a fondness for both romantic gossip and dirty jokes, both of which R2-D2 had learned to provide in large quantities.”
—
The Last Jedi: Expanded Edition (Star Wars) by Jason Fry
[This is one of the funniest parts of the TLJ novelization, IMO.]