The R scripts here are hosted on my Github repository.
They are designed to teach the user about common reasons for poor reproducibility such as low power, p-hacking, failure to correct for multiple testing and double-dipping.
They assume little background knowledge of R, and, if followed sequentially, provide some basic training in the essentials.