![]() Package dependencies are listed in the Depends section of the package's CRAN site. Then, install the package using the command R CMD INSTALL:Ī major difference between installing R packages using the R package installer at the R command line and shell command line is that package dependencies must be resolved manually at the shell command line. To install packages this way, first locate the package on CRAN and then download the package source to your local machine. This is useful for some packages when an internet connection is not available or for installing packages not uploaded to CRAN. You can also install R from the shell command line. This is a huge benefit that frees users from the task of identifying and resolving those dependencies. ![]() If the arules package depends upon other packages that are not already installed locally, the R installer automatically downloads and installs those required packages. Within R, using the install.packages function always attempts to install the latest version of the requested package available on CRAN: It installs the arules package as root so that packages are installed in the default R system-wide location where all users can access it, /usr/lib64/R/library. The following example installs a package on Oracle Linux using Oracle R Distribution. R package installation basics are outlined in Chapter 6 of the R Installation and Administration Guide. You can install R packages from the R command line or from your system’s command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |