For the selected function, cut and paste the command into R and then change the name and then hit return.