In: Computer Science
In r, Find the number of plot methods that are in your version of R
Version() provides detailed information about the version of R running. R. version is a variable (a list ) holding this information (and version is a copy of it for S compatibility).
Open RStudio. At the top of the Console you will see session info. The first line tells you which version of R you are using. If RStudio is already open and you're deep in a session, type R.
require(graphics) R.version$os # to check how lucky you are ... plot(0) # any plot mtext(R.version.string, side = 1, line = 4, adj = 1) # a useful bottom-right note ## a good way to detect macOS: if(grepl("^darwin", R.version$os)) message("running on macOS") ## Short R version string, ("space free", useful in file/directory names; ## also fine for unreleased versions of R): shortRversion <- function() { rvs <- R.version.string if(grepl("devel", (st <- R.version$status))) rvs <- sub(paste0(" ",st," "), "-devel_", rvs, fixed=TRUE) gsub("[()]", "", gsub(" ", "_", sub(" version ", "-", rvs))) } shortRversion()