R/vegandocs.R

`vegandocs` <-
    function (doc = c("NEWS", "ONEWS", "FAQ-vegan",
              "intro-vegan", "diversity-vegan",
              "decision-vegan", "partitioning", "permutations")) 
{
    doc <- match.arg(doc)
    if (doc == "NEWS") {
        .Deprecated('news(package="vegan")')
        news(package = "vegan")
    } else if (doc %in% vignette(package="vegan")$results[, "Item"]) {
        .Deprecated('browseVignettes("vegan")')
        vignette(doc, package = "vegan")
    } else if (doc == "permutations") {
        .Deprecated('browseVignettes("permute")')
        vignette(doc, package = "permute")
    } else  # last resort
        file.show(system.file(package="vegan", doc))
}

Try the vegan package in your browser

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

vegan documentation built on May 2, 2019, 5:51 p.m.