Slide 8
Slide 8 text
Avoid some common pitfalls
● Use a single qsub log file
○ Helps understand the context of standard error & output
● Avoid hard-coded subsetting
○ Like:
■ df[, c(1, 3)]
○ Use:
■ vars <- c("hola", "hi")
■ stopifnot(all(vars %in% colnames(df))
■ df[, vars]
● Include R session info: always
○ library("sessioninfo")
○ ## Reproducibility information
○ print('Reproducibility information:')
○ Sys.time()
○ proc.time()
○ options(width = 120)
○ session_info()