From ritz at life.ku.dk  Fri Apr 17 14:47:21 2009
From: ritz at life.ku.dk (Christian Ritz)
Date: Fri, 17 Apr 2009 14:47:21 +0200
Subject: [Rd] suggestion for R >= 3.0: computer-readable CHANGELOG
In-Reply-To: <49E85C0D.6040809@stats.uwo.ca>
References: <49E82D9C.9090402@sciviews.org> <49E85C0D.6040809@stats.uwo.ca>
Message-ID: <49E87A59.2010003@life.ku.dk>

Hi Duncan,

on a related note: It would be nice to have a function similar to tools::readNEWS() for
showing package-specific CHANGES/NEWS files (if available).


Something like:


"showNews" <- function(pkgname, filename = c("NEWS", "CHANGES"))
{
    filename <- match.arg(filename)

    file.show(paste(.libPaths(), pkgname, filename, sep = "/"),
    title = paste("Package information for", pkgname))
}


showNews("MASS")

showNews("multcomp", "CHANGES")
# requires 'multcomp' to be installed


Just an idea!

Christian



[Rd] suggestion for R >= 3.0: computer-readable CHANGELOG
Christian Ritz