There are several ways to install packages in RStudio IDE. Typically, packages can be installed in the console window using
install.packages()command. Alternatively, you can use Tools | Install Packages menu or the Packages pane.
Some packages such as baseballr have their own installation procedure. Baseballr installation procedure is described in the GitHub repository for this package:
Baseballr can be installed by using
You will need to copy and paste these commands in to the RStudio console. The best practice would be for you to include these lines in your RStudio project. This way if you were to share your project with someone, they would be able to reproduce your work in their RStudio.
require() install_github( ) require( )