Generates a vector of all packages available to the user and optionally opens the user's library (this isn't necessarily where all of the available packages are stored).

p_library(open = FALSE)

p_lib(open = FALSE)

Arguments

open

logical. If TRUE opens the directory of the add on packages library.

Examples

p_lib()
#>   [1] "pacman"            "R6"                "RColorBrewer"     
#>   [4] "Rcpp"              "askpass"           "base64enc"        
#>   [7] "brio"              "bslib"             "cachem"           
#>  [10] "callr"             "cli"               "cpp11"            
#>  [13] "crayon"            "curl"              "desc"             
#>  [16] "devEMF"            "diffobj"           "digest"           
#>  [19] "doconv"            "downlit"           "evaluate"         
#>  [22] "fansi"             "farver"            "fastmap"          
#>  [25] "fontBitstreamVera" "fontLiberation"    "fontawesome"      
#>  [28] "fontquiver"        "fs"                "gdtools"          
#>  [31] "ggplot2"           "glue"              "gtable"           
#>  [34] "highr"             "htmltools"         "httr2"            
#>  [37] "isoband"           "jquerylib"         "jsonlite"         
#>  [40] "knitr"             "labeling"          "lifecycle"        
#>  [43] "locatexec"         "magick"            "magrittr"         
#>  [46] "memoise"           "mime"              "officer"          
#>  [49] "openssl"           "pdftools"          "pillar"           
#>  [52] "pkgbuild"          "pkgconfig"         "pkgdown"          
#>  [55] "pkgload"           "praise"            "processx"         
#>  [58] "ps"                "purrr"             "qpdf"             
#>  [61] "ragg"              "rappdirs"          "rlang"            
#>  [64] "rmarkdown"         "rprojroot"         "rsvg"             
#>  [67] "sass"              "scales"            "stringi"          
#>  [70] "sys"               "systemfonts"       "testthat"         
#>  [73] "textshaping"       "tibble"            "tinytex"          
#>  [76] "utf8"              "uuid"              "vctrs"            
#>  [79] "viridisLite"       "waldo"             "whisker"          
#>  [82] "withr"             "xfun"              "xml2"             
#>  [85] "yaml"              "zip"               "KernSmooth"       
#>  [88] "MASS"              "Matrix"            "base"             
#>  [91] "boot"              "class"             "cluster"          
#>  [94] "codetools"         "compiler"          "datasets"         
#>  [97] "foreign"           "grDevices"         "graphics"         
#> [100] "grid"              "lattice"           "methods"          
#> [103] "mgcv"              "nlme"              "nnet"             
#> [106] "parallel"          "rpart"             "spatial"          
#> [109] "splines"           "stats"             "stats4"           
#> [112] "survival"          "tcltk"             "tools"            
#> [115] "utils"            
p_library()
#>   [1] "pacman"            "R6"                "RColorBrewer"     
#>   [4] "Rcpp"              "askpass"           "base64enc"        
#>   [7] "brio"              "bslib"             "cachem"           
#>  [10] "callr"             "cli"               "cpp11"            
#>  [13] "crayon"            "curl"              "desc"             
#>  [16] "devEMF"            "diffobj"           "digest"           
#>  [19] "doconv"            "downlit"           "evaluate"         
#>  [22] "fansi"             "farver"            "fastmap"          
#>  [25] "fontBitstreamVera" "fontLiberation"    "fontawesome"      
#>  [28] "fontquiver"        "fs"                "gdtools"          
#>  [31] "ggplot2"           "glue"              "gtable"           
#>  [34] "highr"             "htmltools"         "httr2"            
#>  [37] "isoband"           "jquerylib"         "jsonlite"         
#>  [40] "knitr"             "labeling"          "lifecycle"        
#>  [43] "locatexec"         "magick"            "magrittr"         
#>  [46] "memoise"           "mime"              "officer"          
#>  [49] "openssl"           "pdftools"          "pillar"           
#>  [52] "pkgbuild"          "pkgconfig"         "pkgdown"          
#>  [55] "pkgload"           "praise"            "processx"         
#>  [58] "ps"                "purrr"             "qpdf"             
#>  [61] "ragg"              "rappdirs"          "rlang"            
#>  [64] "rmarkdown"         "rprojroot"         "rsvg"             
#>  [67] "sass"              "scales"            "stringi"          
#>  [70] "sys"               "systemfonts"       "testthat"         
#>  [73] "textshaping"       "tibble"            "tinytex"          
#>  [76] "utf8"              "uuid"              "vctrs"            
#>  [79] "viridisLite"       "waldo"             "whisker"          
#>  [82] "withr"             "xfun"              "xml2"             
#>  [85] "yaml"              "zip"               "KernSmooth"       
#>  [88] "MASS"              "Matrix"            "base"             
#>  [91] "boot"              "class"             "cluster"          
#>  [94] "codetools"         "compiler"          "datasets"         
#>  [97] "foreign"           "grDevices"         "graphics"         
#> [100] "grid"              "lattice"           "methods"          
#> [103] "mgcv"              "nlme"              "nnet"             
#> [106] "parallel"          "rpart"             "spatial"          
#> [109] "splines"           "stats"             "stats4"           
#> [112] "survival"          "tcltk"             "tools"            
#> [115] "utils"            
if (FALSE) { # \dontrun{
p_lib(TRUE)
} # }