inst/tinytest/test_installed.R

if (interactive()) {
  pkgload::load_all()
  library("tinytest")
}


if (is_running_on_fvafrcu_machines() || is_running_on_gitlab_com()) {
  # NOTE: There are CRAN machines where neither "R" nor "R-devel" is in
  # the path, so we skipt this test on unkown machines.
  expect_true(is_installed("R"))
}
expect_true(!is_installed("This_program_is_not_installed"))





expect_true(is_r_package_installed("fritools2", "1.1.0"))
expect_true(!is_r_package_installed("fritools2", "9999"))

Try the fritools2 package in your browser

Any scripts or data that you put into this service are public.

fritools2 documentation built on July 9, 2023, 7:07 p.m.