Re: [Rd] package.skeleton

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sat 19 Mar 2005 - 18:27:17 GMT

James MacDonald wrote:

>>R.version.string

>
> [1] "R version 2.1.0, 2005-03-17"
>
> I don't see anything in either https://svn.r-project.org/R/trunk/NEWS
> or in the Changes file for R-2.1.0 about changes in package.skeleton()
> (nor in the help page), but when I run this function, all the .Rd files
> produced are of the data format even if all I have in my .GlobalEnv are
> functions.
>
> A trivial example is to run the examples from the package.skeleton()
> help page. I believe there should be two data type and two function type
> .Rd files, but instead they are all of the data type.

Yes, I think package.skeleton() needs the follwing simple fix (since we do not get() each object in prompt() any more - alternatively, reverting some changes in prompt() fixes it as well):

@@ -140,7 +140,7 @@

      sink(outConn, type = "output")
      yy <- try(sapply(list,
                       function(item) {
-                         prompt(item,
+                         prompt(name = item,
                                  filename = file.path(path, name, "man",
                                  paste(list0[item], "Rd", sep=".")))
                       }))



Uwe Ligges

> Best,
>
> Jim
>
>
>
>
> James W. MacDonald
> Affymetrix and cDNA Microarray Core
> University of Michigan Cancer Center
> 1500 E. Medical Center Drive
> 7410 CCGC
> Ann Arbor MI 48109
> 734-647-5623
>
>
> **********************************************************
> Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Mar 20 05:29:56 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:26:31 GMT