Completion generator for R