Creating an R Package with RStudio To Create a package open RStudio, on the menu browse
File > New Project > New Directory Then, from the following options choose R Package.
At this point, we need to assign the R Package a name and tell RStudio where to place the main folder containing our package files without our folder structure. Here, I’ve chosen to put it under the folder University and to call it PerfectRPackage.