tests/testthat/test-detect_versions.R

testthat::expect_equal(
  detect_versions(c("dplyr", "tidyr")),
  list(
    "cran_packages" = c("dplyr", "tidyr"),
    "archive_packages" = NULL
  )
)

testthat::expect_equal(
  detect_versions(c("dplyr@0.80", "tidyr")),
  list(
    "cran_packages" = "tidyr",
    "archive_packages" = "dplyr@0.80"
  )
)

Try the rix package in your browser

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

rix documentation built on Sept. 11, 2025, 5:12 p.m.