Re: [Rd] Accessing the formals() of a non-exported method without :::?

2013-08-23 Thread Gavin Simpson
By "...I had forgotten that a package can refer to any of *its own packages*" I of course meant "...I had forgotten that a package can refer to any of *its own functions*" Guess I should call it a night... G On 23 August 2013 21:49, Gavin Simpson wrote: > Thanks Michael, somewhat embarrassin

[Rd] Correct NAMESPACE approach when writing an S3 method for a generic in another package

2013-08-23 Thread Gavin Simpson
Dear List, In one of my packages I have an S3 method for the plot3d generic function from package rgl. I am trying to streamline my Depends entries but don't know how to have plot3d(foo) in the examples section for the plot3d method in my package, without rgl being in Depends. Note that I impor

Re: [Rd] Accessing the formals() of a non-exported method without :::?

2013-08-23 Thread Gavin Simpson
Thanks Michael, somewhat embarrassingly, I had forgotten that a package can refer to any of *its own packages*. So I don't need analogue:::foo.bar as that is being called from a function in the analogue namespace. Cheers, G On 23 August 2013 09:27, R. Michael Weylandt wrote: > > > On Aug 23, 2

Re: [Rd] packages with Sweave and knitr vignettes?

2013-08-23 Thread Yihui Xie
Note there is a bug in R-release, and its consequence is that you cannot use two different weave engines on two documents of the same file extension. In your case, you cannot use both knitr and Sweave on two .Rnw documents. I just checked R-devel, and it has not been fixed yet. If you do not have

Re: [Rd] Makevars and Makeconf sequencing

2013-08-23 Thread Simon Urbanek
On Aug 23, 2013, at 7:53 PM, Ross Boylan wrote: > http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup > near the start of 1.2.1 Using Makevars says > >> There are some macros which are set whilst configuring the building of >> R itself and are stored in R_HOME/etcR_ARCH/Make

[Rd] Makevars and Makeconf sequencing

2013-08-23 Thread Ross Boylan
http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup near the start of 1.2.1 Using Makevars says > There are some macros which are set whilst configuring the building of > R itself and are stored in R_HOME/etcR_ARCH/Makeconf. That makefile is > included as a Makefile after Makev

Re: [Rd] packages with Sweave and knitr vignettes?

2013-08-23 Thread Henrik Bengtsson
On Fri, Aug 23, 2013 at 1:24 PM, Michael Friendly wrote: > Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems to > imply that > it is possible to include both Sweave and knitr vignettes in a single > package. > > I'm wondering > if anyone has tried this and/or if there are some

Re: [Rd] packages with Sweave and knitr vignettes?

2013-08-23 Thread Dan Tenenbaum
On Fri, Aug 23, 2013 at 1:24 PM, Michael Friendly wrote: > Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems to > imply that > it is possible to include both Sweave and knitr vignettes in a single > package. > > I'm wondering > if anyone has tried this and/or if there are some

[Rd] packages with Sweave and knitr vignettes?

2013-08-23 Thread Michael Friendly
Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems to imply that it is possible to include both Sweave and knitr vignettes in a single package. I'm wondering if anyone has tried this and/or if there are some hidden gotchas putting this into practice, and concerned about cr

Re: [Rd] Accessing the formals() of a non-exported method without :::?

2013-08-23 Thread R. Michael Weylandt
On Aug 23, 2013, at 11:15, Gavin Simpson wrote: > Dear List, > > I'm in the process of making tweaks to my various R packages following > changes in r-devel for package checks. I'm wondering about the one use > of ::: in one of my packages. I am arranging for a call to a > non-exported S3 meth

[Rd] Accessing the formals() of a non-exported method without :::?

2013-08-23 Thread Gavin Simpson
Dear List, I'm in the process of making tweaks to my various R packages following changes in r-devel for package checks. I'm wondering about the one use of ::: in one of my packages. I am arranging for a call to a non-exported S3 method via do.call. For this I need the arguments of the function an

Re: [Rd] legitimate use of :::

2013-08-23 Thread Stephen Milborrow
To avoid the NOTEs (which often triggers a 'pls fix' upon submission to CRAN), I simply copied/pasted these functions to my package, but this seems wasteful. An issue is how one acknowledges the author of the cut and pasted code. Assume that for one reason or another the original function can't