# NOT RUN {
packageDescription("stats")
packageDescription("stats", fields = c("Package", "Version"))
packageDescription("stats", fields = "Version")
packageDescription("stats", fields = "Version", drop = FALSE)
if(packageVersion("MASS") < "7.3.29")
message("you need to update 'MASS'")
# }
# NOT RUN {
<!-- %dont -->
# }
# NOT RUN {
pu <- packageDate("utils")
# }
# NOT RUN {
str(pu)
# }
# NOT RUN {
stopifnot(identical(pu, packageDate(desc = packageDescription("utils"))),
identical(pu, packageDate("stats"))) # as "utils" and "stats" are
# both 'base R' and "Built" at same time
# }
Run the code above in your browser using DataLab