R is a nasty nasty language for productionalizing things, honestly it's just too flexible and let's you do the craziest things.
But being so flexible makes it really expressive for doing ad-hoc analysis where you really don't know what you're looking for yet.