The recent retraction of a trial published in JAMA after a serious programming error highlights why sharing analytic code is important for transparency.