Here is a link to the post: Writing a reproducible research paper