check_mdrb()
returns a boolean indicating whether a suitable version of the
metabodecon Rust backend mdrb is
currently installed.
check_mdrb_deps()
returns a list with detailed information about the
installation status of mdrb and its dependencies.
Value
check_mdrb()
returns TRUE if a suitable version of mdrb is installed,
else FALSE.
check_mdrb_deps()
returns a data.frame with the following columns:
check
: description of the checked dependency as a stringpassed
: boolean indicating whether the check passedcomment
: free text string describing the check result
The rownames of the dataframe are: r
, rtools
, cargo
and rustc
and
correspond to the checked dependencies.
Example:
check_mdrb_deps()
## check passed comment
## r R >= 4.2 TRUE Current: R 4.4.2
## rtools Rtools exist TRUE Tested with: pkgbuild::has_build_tools()
## cargo cargo >= 1.78 TRUE Current: cargo 1.84.1 (66221abde 2024-11-19)
## rustc rustc >= 1.78 TRUE Current: rustc 1.84.1 (e71f9a9a9 2025-01-27)
Examples
check_mdrb()
#> [1] TRUE
check_mdrb_deps()
#> check passed comment
#> r R >= 4.2 TRUE Current: R 4.4.3
#> rtools Rtools exist TRUE Testcall: pkgbuild::has_build_tools()
#> cargo cargo >= 1.78 TRUE Current: cargo 1.85.0 (d73d2caf9 2024-12-31)
#> rustc rustc >= 1.78 TRUE Current: rustc 1.85.0 (4d91de4e4 2025-02-17)