Difference between r-base and r-recommended packages

前端 未结 3 2101
予麋鹿
予麋鹿 2020-12-13 14:21

Can anyone tell me what is the difference between base and recommended packages.

If there is link where base and recommended packages are mentioned please provide th

3条回答
  •  無奈伤痛
    2020-12-13 15:10

    I'd like to answer from a slightly different perspective, and with functions rather than links. If Priority is "base", then the package is already installed and loaded, so all of its functions are available upon opening R. If Priority is "recommended", then the package was installed with base R, but not loaded. Before using the commands from this package, the user will have to load it with the library command, e.g. library(boot).

    As to the links, installed.packages() with a filter for Priority should list all the packages that are installed and loaded (base) or just installed (recommended), so you don't really need any links.

    x <- installed.packages()
    x[ !is.na(x[ ,"Priority"]), c("Package", "Priority") ]
    

    For all other packages, see available.packages(). See this link for details.

提交回复
热议问题