@vishalkatti I do this regularly - mostly so I can use the help features. I am always forgetting the parameters to my own custom functions! It is so much easier to pull up the man page from within RStudio while coding (than having to inspect the complex source each time).
Also good practice for keeping your code organised and versioned.