The R command to load a general package is library("RPackage") One option is to specify the local path to the R package while loading the library. There are a few ways to load the locally installed R packages and use them. Installing R Packages at a local directory is only a first step. ![]() R CMD INSTALL -l /usr/me/localR/library How to Load a Locally Installed R Package and Use it? ![]() For example, to install the R package in the local directory “/usr/me/localR/library”, use the “R CMD INSTALL” as follows. To install a R package locally, specify the local directory where you want to install by using the “-l” option in the “ R CMD INSTALL” command. Here is how to install a R package locally from the terminal. Sometimes you might want to install a R package locally, either because you may not have root access to install a package globally or you may just want to try out a new package before installing globally. The command to install a R package to all users in your machine is R CMD INSTALL -l Local Installation of R Packages ![]() Typically, R Packages can be downloaded as “tar.gz” file for Mac OS X from CRAN sources. There are loads of useful packages that let you get started immediately in using a wide realm of statistical/computational tools. R has been one of the popular languages for anything to do with large amount of data.
0 Comments
Leave a Reply. |