Skip to content

How to install baseballr package in RStudio

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 devtools:

require(devtools)
install_github("BillPetti/baseballr")
require(baseballr)
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.



Feedback and Knowledge Base