Template for writing manuscripts as an R package