From spencer.graves at prodsyse.com  Thu Jul  9 17:33:57 2009
From: spencer.graves at prodsyse.com (spencerg)
Date: Thu, 09 Jul 2009 08:33:57 -0700
Subject: [Rd] Number of functions, data sets, ..., in a package?
In-Reply-To: <971536df0907090745p2d79e2adsdd668922dd5f393c@mail.gmail.com>
References: <4A55FFBC.4010805@prodsyse.com>
	<971536df0907090745p2d79e2adsdd668922dd5f393c@mail.gmail.com>
Message-ID: <4A560DE5.2050001@prodsyse.com>

Dear Gabor: 


      Thanks very much.  I will study "codoc" with great interest.  (The 
code already uses "packageDescription".) 


      Thanks again,
      Spencer

Gabor Grothendieck wrote:
> On Thu, Jul 9, 2009 at 10:33 AM, spencerg<spencer.graves at prodsyse.com> wrote:
>   
>> Hello:
>>
>>     How can one get the number of functions and data sets in a package?
>>
>>     I've written a function "PackageSum2" to get an extended package summary
>> for an installed package.  I get much of what I want from the object
>> returned by "help(package=pkgName)".  For example, "help(pac=...)$info[[1]]"
>> is a character vector giving author, maintainer, date built, etc.
>>  "help(pac=...)$info[[2]]" is a character vector with at least one row for
>> each help page;  I can get the number of help pages by subtracting the
>> number starting with blank (" ") from the length.  And
>> "help(pac=...)$info[[3]]" is a character matrix describing the vignettes.
>>     
>
> Also look at ?packageDescription
>
>   
>>     Is there a reasonably easy way to get numbers of (a) functions and (b)
>> data sets in the package?
>>
>>     I want this for a the next version of "PackageSum2" in the "RSiteSearch"
>> package.  Based partly on previous input from this list, the package is
>> being renamed to "sos" with the primary "RSiteSearch.function" function
>> being renamed to "findFn".  You can install the current development version
>> via 'install.packages("sos", repos="http://R-Forge.R-project.org")'.
>>
>>     
>
> Check out the source of codoc in the tools package.
>
>   
>>     Thanks,
>>     Spencer
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>>     
>
>



[Rd] Number of functions, data sets, ..., in a package?
spencerg