R source files for the chapter "The Analysis of Safety Data from Clinical Trials".