RStudio combines the power of
devtools with its GUI, which makes the development of your own packages very easy and manageable with just a few clicks.
To create a new package with RStudio, just click on File | New Project... and select New Directory.
Then you can select R Package from the upcoming menu:
Now you have to set the necessary parameters for your R package. These include the type of the package, the package name, the option to create a package based on source files, and ...