Skip to contents

This function searches for installed packages inside specified library paths.

Usage

wood_local_packages(paths = .libPaths()[1])

Arguments

paths

character()
Paths to local libraries, by default the first element of .libPaths(). If equal to "all", uses all elements of .libPaths().

Value

A character vector of available packages.

See also

Examples

wood_local_packages()
#>  [1] "R6"          "Rcpp"        "_cache"      "askpass"     "base64enc"  
#>  [6] "brio"        "bslib"       "cachem"      "callr"       "cli"        
#> [11] "clipr"       "covr"        "cpp11"       "crayon"      "credentials"
#> [16] "crul"        "curl"        "desc"        "diffobj"     "digest"     
#> [21] "downlit"     "ellipsis"    "evaluate"    "fansi"       "fastmap"    
#> [26] "fauxpas"     "fontawesome" "fs"          "gert"        "gh"         
#> [31] "gitcreds"    "glue"        "highr"       "htmltools"   "httpcode"   
#> [36] "httptest"    "httr"        "httr2"       "ini"         "jquerylib"  
#> [41] "jsonlite"    "knitr"       "lazyeval"    "lifecycle"   "magrittr"   
#> [46] "memoise"     "mime"        "openssl"     "pillar"      "pkgconfig"  
#> [51] "pkgdown"     "pkgload"     "praise"      "processx"    "ps"         
#> [56] "purrr"       "ragg"        "rappdirs"    "rematch2"    "rex"        
#> [61] "rlang"       "rmarkdown"   "rprojroot"   "rstudioapi"  "sass"       
#> [66] "sessioninfo" "stringi"     "stringr"     "sys"         "systemfonts"
#> [71] "testthat"    "textshaping" "tibble"      "tinytex"     "triebeard"  
#> [76] "urltools"    "usethis"     "utf8"        "vcr"         "vctrs"      
#> [81] "versionsort" "waldo"       "webmockr"    "whisker"     "withr"      
#> [86] "woodendesc"  "xfun"        "xml2"        "yaml"        "zip"        
wood_local_packages("all")
#>   [1] "KernSmooth"   "MASS"         "Matrix"       "R6"           "Rcpp"        
#>   [6] "_cache"       "askpass"      "base"         "base64enc"    "boot"        
#>  [11] "brio"         "bslib"        "cachem"       "callr"        "class"       
#>  [16] "cli"          "clipr"        "cluster"      "codetools"    "compiler"    
#>  [21] "covr"         "cpp11"        "crayon"       "credentials"  "crul"        
#>  [26] "curl"         "datasets"     "desc"         "diffobj"      "digest"      
#>  [31] "downlit"      "ellipsis"     "evaluate"     "fansi"        "fastmap"     
#>  [36] "fauxpas"      "fontawesome"  "foreign"      "fs"           "gert"        
#>  [41] "gh"           "gitcreds"     "glue"         "grDevices"    "graphics"    
#>  [46] "grid"         "highr"        "htmltools"    "httpcode"     "httptest"    
#>  [51] "httr"         "httr2"        "ini"          "jquerylib"    "jsonlite"    
#>  [56] "knitr"        "lattice"      "lazyeval"     "lifecycle"    "magrittr"    
#>  [61] "memoise"      "methods"      "mgcv"         "mime"         "nlme"        
#>  [66] "nnet"         "openssl"      "pak"          "parallel"     "pillar"      
#>  [71] "pkgconfig"    "pkgdown"      "pkgload"      "praise"       "processx"    
#>  [76] "ps"           "purrr"        "ragg"         "rappdirs"     "rematch2"    
#>  [81] "rex"          "rlang"        "rmarkdown"    "rpart"        "rprojroot"   
#>  [86] "rstudioapi"   "sass"         "sessioninfo"  "spatial"      "splines"     
#>  [91] "stats"        "stats4"       "stringi"      "stringr"      "survival"    
#>  [96] "sys"          "systemfonts"  "tcltk"        "testthat"     "textshaping" 
#> [101] "tibble"       "tinytex"      "tools"        "translations" "triebeard"   
#> [106] "urltools"     "usethis"      "utf8"         "utils"        "vcr"         
#> [111] "vctrs"        "versionsort"  "waldo"        "webmockr"     "whisker"     
#> [116] "withr"        "woodendesc"   "xfun"         "xml2"         "yaml"        
#> [121] "zip"