Question: how to import package in rstudio?
Answer: Run R studio. Click on the Packages tab in the bottom-right section and then click on install. The following dialog box will appear. In the Install Packages dialog, write the package name you want to install under the Packages field and then click install.