Skip to contents
loading...

List required packages or conflicting functions. These functions are inspired by tidyverse::tidyverse_packages() and tidyverse::tidyverse_conflicts(), but adapted to the SciViews::R context.

Usage

SciViews_packages(..., all = FALSE)

SciViews_packages_topics(all = FALSE)

SciViews_conflicts(all = TRUE)

# S3 method for SciViews_conflicts
print(x, ..., startup = FALSE)

Arguments

...

Further topics to consider in SciViews::R. Currently, "infer", "model", "explore", "ml", "ts" or "spatial".

all

Should all packages be listed (TRUE) or only those that are attached to the search path (FALSE).

x

A SciViews_conflicts object

startup

Should the message be printed at startup?

Value

A list of packages for SciViews_packages(), or a SciViews_conflicted object with a print() method for SciViews_conflicts().

Examples

# List of packages attached to the search path with SciViews::R
SciViews_packages()
#> $SciViews
#>  [1] "rlang"      "MASS"       "lattice"    "data.table" "ggplot2"   
#>  [6] "tibble"     "tidyr"      "dplyr"      "dtplyr"     "broom"     
#> [11] "forcats"    "collapse"   "fs"         "svMisc"     "svBase"    
#> [16] "svFlow"     "data.io"    "chart"      "tabularise" "SciViews"  
#> 
# More complete list of packages used by SciViews::R
SciViews_packages(all = TRUE)
#> $SciViews
#>  [1] "MASS"          "lattice"       "data.table"    "broom"        
#>  [5] "cli"           "crayon"        "dbplyr"        "dplyr"        
#>  [9] "dtplyr"        "forcats"       "googledrive"   "googlesheets4"
#> [13] "ggplot2"       "haven"         "hms"           "httr"         
#> [17] "jsonlite"      "lubridate"     "magrittr"      "modelr"       
#> [21] "pillar"        "purrr"         "readr"         "readxl"       
#> [25] "reprex"        "rlang"         "rstudioapi"    "rvest"        
#> [29] "stringr"       "tibble"        "tidyr"         "xml2"         
#> [33] "tidyverse"     "collapse"      "fs"            "svMisc"       
#> [37] "svBase"        "svFlow"        "data.io"       "chart"        
#> [41] "tabularise"    "SciViews"     
#> 
# Even more packages, by adding also 'model' and 'ml' topics
SciViews_packages("model", "ml", all = TRUE)
#> $SciViews
#>  [1] "MASS"          "lattice"       "data.table"    "broom"        
#>  [5] "cli"           "crayon"        "dbplyr"        "dplyr"        
#>  [9] "dtplyr"        "forcats"       "googledrive"   "googlesheets4"
#> [13] "ggplot2"       "haven"         "hms"           "httr"         
#> [17] "jsonlite"      "lubridate"     "magrittr"      "modelr"       
#> [21] "pillar"        "purrr"         "readr"         "readxl"       
#> [25] "reprex"        "rlang"         "rstudioapi"    "rvest"        
#> [29] "stringr"       "tibble"        "tidyr"         "xml2"         
#> [33] "tidyverse"     "collapse"      "fs"            "svMisc"       
#> [37] "svBase"        "svFlow"        "data.io"       "chart"        
#> [41] "tabularise"    "SciViews"     
#> 
#> $model
#> [1] "broom"   "MASS"    "modelit"
#> 
#> $ml
#>  [1] "class"        "e1071"        "ipred"        "MASS"         "mlbench"     
#>  [6] "mlearning"    "nnet"         "parsnip"      "randomForest" "recipes"     
#> [11] "ROCR"         "rpart"        "rsample"     
#> 
# Conflicts
SciViews_conflicts()
#>