In R, how can I load a package from my local drive?
In R, to load a package saved in a local drive, use the command
library() and specify the name and location of the
package. For example, if you have a package named mypkg
located at f:\R-packages, use the following command to
load the package:
For more about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
Last modified on April 19, 2011.







