[R-pkg-devel] use of `dev.new` across platforms in RStudio

2015-06-12 Thread Alex Chubaty
Dear list members, Use of platform-specific code to open new plot devices (e.g., `quartz`, `x11`) is discouraged in favour of using `dev.new`; however, this does not work in RStudio. A purported solution introduced in R 3.1.1 was to call `dev.new(noRStudioGD = TRUE)`, which works on Windows, but n

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Uwe Ligges
On 12.06.2015 18:22, Roebuck,Paul L wrote: Actually, between this and other things coming from 'R CMD check' these days, I disagree that this is reasonable at all - it's a hack Why a hack? I am not sure what the right mechanism is, but here the check is not the problem but it uncovers the pr

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Roebuck,Paul L
Actually, between this and other things coming from 'R CMD check' these days, I disagree that this is reasonable at all - it's a hack at best that only fixes this particular issue. Better would be to introduce lint-like directives that turn off certain R CMD check notes/warnings at different scopes

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Xavier Robin
On 10/06/15 16:12, John Fox wrote: > Is there any way to suppress the note without removing all.effects()? Dear John, I raised this question on the Rd list a couple of months ago and didn't get an answer (when asking the CRAN maintainers directly they suggested to rename the functions). https://

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread John Fox
Dear Martin, Thank you for addressing this issue. Introducing a nonS3method() directive in NAMESPACE seems a reasonable solution. It could replace export() for functions with "."s in their names. Best, John On Fri, 12 Jun 2015 09:55:18 +0200 Martin Maechler wrote: > > John Fox > >

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Thomas Petzoldt
Dear Martin, dear package developers, I had a very similar case three days ago in one of our packages. Our aim was to provide an S3 method matplot.deSolve and an alternative and more specific non-S3 function matplot.1D because the .1D follows the naming scheme of other related functions. The not

Re: [R-pkg-devel] R CMD check "no-nanny" option?

2015-06-12 Thread Henrik Singmann
To further expand on what has been said before with my own experiences: After submitting a package and missing those two NOTES (probably because I did not use the latest R-devel) my submission was rejected and I was asked to change my DESCRIPTION file. In other words, packages throwing thes

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Martin Maechler
> John Fox > on Wed, 10 Jun 2015 10:12:46 -0400 writes: > Dear list members, > One of the packages I maintain, effects, generates the following note in R > CMD check: > * checking S3 generic/method consistency ... NOTE > Found the following apparent S3 methods exp

Re: [R-pkg-devel] "apparent S3 methods" note in R CMD check

2015-06-12 Thread Martin Maechler
> John Fox > on Wed, 10 Jun 2015 10:12:46 -0400 writes: > Dear list members, > One of the packages I maintain, effects, generates the following note in R > CMD check: > * checking S3 generic/method consistency ... NOTE > Found the following apparent S3 methods exp

Re: [R-pkg-devel] R CMD check "no-nanny" option?

2015-06-12 Thread Thomas Petzoldt
Am 6/11/2015 um 4:55 PM schrieb Dirk Eddelbuettel: On 11 June 2015 at 09:15, Kevin Coombes wrote: | Grumpy Observation: In reaction to (1), I went to CRAN and randomly | clicked on a dozen packages to see how many of them follow this rule. | Half of them violate it explicitly, mostly just starti

Re: [R-pkg-devel] Questions for writing a package

2015-06-12 Thread haixiao...@aliyun.com
Thank you so much! What if I call a matlab function instead? Will CRAN accept such package? And I used 'RcppOctave' package to call matlab functions. However, 'RcppOctave' is not available on Windows. 'R.matlab' would be a substitute, but it seems clumsy using 'setFunction' as the function has 2