tests/test-package_date.R

library("repo.data")

# Test deps without version number
pd <- package_date("ggeasy")
stopifnot(length(pd) == 2L)
stopifnot(names(pd) == c("Published", "deps_available"))
# Test with a mix of version numbers and no versions
ud <- package_date("usethis")
stopifnot(as.logical(length(ud)))

Try the repo.data package in your browser

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

repo.data documentation built on Sept. 15, 2025, 9:08 a.m.