tests/testthat/test-cran.R

test_that("available_packages", {

  skip_on_cran()

  pkgs <- available_packages(
    repos = c(CRAN = "http://cran.rstudio.com"),
    type = "source"
  )

  expect_true(inherits(pkgs, "matrix"))
})
r-lib/remotes documentation built on April 6, 2024, 8:49 p.m.