Add function snippet for R source.