Checks that the required versions of 'R', 'RStudio', 'R' packages and other dependencies are installed.

chk_requirements(path = system.file("default.yaml", package = "checker"))

Arguments

path

path to yaml file. Defaults to a file that comes with the package.

Value

No return value, output is printed

Details

chk_requirements() checks that the computer set up before class. It check

  • 'R' version

  • 'RStudio' version

  • 'RStudio' options

  • 'R' packages are installed (with version if necessary)

  • 'git' version

  • 'quarto' version

These requirements are specified in a yaml file specified by the path argument which can be on the users computer or at a URL. If not set, the function defaults to using a built-in yaml file, which may not require the latest version.

Examples

chk_requirements()
#> → Date = 2023-04-26 14:06:58.275272
#> → os = Ubuntu 18.04.6 LTS
#>  Are you using RStudio?
#>  R version 4.3.0 is installed
#>  quarto version 1.3.262 is installed
#>  git version 2.17.1 is installed
#> → Checking R packages
#>  tidyverse version 2.0.0 is installed
#>  here version 1.0.1 is installed
#>  quarto version 1.2 is installed
#>  You have some issues that need addressing