Hello, Apologies if this is a stupid question. I googled and skimmed the archives and didn't see anything specific about this. I am documenting an analysis procedure in a DB and I would like to know the specific version number of each package that I use. Is there a standardized way of getting that information out from R, or should I parse it out from the source-code files? Ideally I would like a function like this: myVerNum <- Version(package.names); Any guidance, direction, or suggestions are very much appreciated! Paul ---------------------------------------- This mail sent through www.mywaterloo.ca
pack <- installed.packages() christian ----- Original Message ----- From: "Paul Boutros" <pcboutro at engmail.uwaterloo.ca> To: <r-help at stat.math.ethz.ch> Sent: Thursday, July 10, 2003 6:59 PM Subject: [R] Version Number of a Package> Hello, > > Apologies if this is a stupid question. I googled and skimmed thearchives and> didn't see anything specific about this. > > I am documenting an analysis procedure in a DB and I would like to knowthe> specific version number of each package that I use. Is there astandardized> way of getting that information out from R, or should I parse it out fromthe> source-code files? Ideally I would like a function like this: > myVerNum <- Version(package.names); > > Any guidance, direction, or suggestions are very much appreciated! > Paul > > > > ---------------------------------------- > This mail sent through www.mywaterloo.ca > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> I am documenting an analysis procedure in a DB and I would like to know the > specific version number of each package that I use. Is there a standardized > way of getting that information out from R, or should I parse it out from the > source-code files? Ideally I would like a function like this: > myVerNum <- Version(package.names);There are a several ways to skin that cat. A few that come to mind are using package.description():> package.description("Biobase")["Version"]Version "1.3.27" You can also use installed.packages():> z <- installed.packages() > z[1,"Version"][1] "1.2.28" Also, in the Biobase package in Bioconductor (www.bioconductor.org), there's a function package.version():> package.version("Biobase")[1] "1.3.27" -J