Re: [Rd] is.vector(as.vector(x, m), m) not always TRUE

2013-04-23 Thread peter dalgaard
On Apr 24, 2013, at 01:48 , Hervé Pagès wrote: > In the man page for as.vector() (same as man page for vector()): > > Writers of methods for ‘as.vector’ need to take care to follow the > conventions of the default method. In particular > >• Argument ‘mode’ can be ‘"any"’, any o

[Rd] multiple issues with is.unsorted()

2013-04-23 Thread Hervé Pagès
Hi, In the man page for is.unsorted(): Value: A length-one logical value. All objects of length 0 or 1 are sorted: the result will be ‘NA’ for objects of length 2 or more except for atomic vectors and objects with a class (where the ‘>=’ or ‘>’ method is used to compare ‘

[Rd] Problem with S3 method dispatch and NAMESPACE

2013-04-23 Thread Frank Harrell
I have updated the rms package to extensively use NAMESPACE. I cannot get certain S3 methods to dispatch. For example I have in NAMESPACE S3method(anova, rms) S3method(latex, anova.rms) anova.rms produces an object of class "anova.rms" and there is a latex.anova.rms function in rms. But when I

[Rd] is.vector(as.vector(x, m), m) not always TRUE

2013-04-23 Thread Hervé Pagès
In the man page for as.vector() (same as man page for vector()): Writers of methods for ‘as.vector’ need to take care to follow the conventions of the default method. In particular • Argument ‘mode’ can be ‘"any"’, any of the atomic modes, ‘"list"’, ‘"expression"’, ‘

Re: [Rd] Verbose output from R CMD check

2013-04-23 Thread Simon Urbanek
On Apr 23, 2013, at 12:43 PM, dpleydell wrote: > Many thanks Simon for your response >>> Identifying the source of the message is a non-trivial problem because >>> there are a large number of calls to printf and fprintf etc in several >>> thousands of lines of code spread over many different *.c

[Rd] about the 'length' arg of vector()

2013-04-23 Thread Hervé Pagès
Hi, In the man page for vector(): length: A non-negative integer specifying the desired length. Double values will be coerced to integer: supplying an argument of length other than one is an error. Since long vectors are supported, it doesn't seem to be true anymore that

Re: [Rd] as.name and namespaces

2013-04-23 Thread Duncan Murdoch
On 13-04-23 3:51 PM, Patrick Burns wrote: Okay, that's a good reason why it shouldn't. Why it should is that I want to substitute the first element of a call to be a function including the namespace. Three ways: 1. Assign the function from the namespace locally, then call the local one. 2.

Re: [Rd] as.name and namespaces

2013-04-23 Thread peter dalgaard
On Apr 23, 2013, at 21:51 , Patrick Burns wrote: > Okay, that's a good reason why it shouldn't. > > Why it should is that I want to substitute > the first element of a call to be a function > including the namespace. Offhand, I'd say that it shouldn't be a problem, but do you have a more concr

Re: [Rd] as.name and namespaces

2013-04-23 Thread Patrick Burns
Okay, that's a good reason why it shouldn't. Why it should is that I want to substitute the first element of a call to be a function including the namespace. Pat On 23/04/2013 18:32, peter dalgaard wrote: On Apr 23, 2013, at 19:23 , Patrick Burns wrote: 'as.name' doesn't recognize a name w

Re: [Rd] httpd error with and help_type = 'html', package = NULL

2013-04-23 Thread Duncan Murdoch
On 23/04/2013 9:07 AM, Prof Brian Ripley wrote: Is this not PR#15282? No one has got to it yet. Fixed now in R-devel; just testing R-patched. Duncan Murdoch On 23/04/2013 07:32, Michael Nelson wrote: > Having loaded a package that masks an object from another package, calling > > > help(con

Re: [Rd] as.name and namespaces

2013-04-23 Thread peter dalgaard
On Apr 23, 2013, at 19:23 , Patrick Burns wrote: > 'as.name' doesn't recognize a name with > its namespace extension as a name: > > > as.name("lm") > lm > > as.name("stats::lm") > `stats::lm` > > as.name("stats:::lm") > `stats:::lm` > > > Is there a reason why it shouldn't? Any reason why it

[Rd] as.name and namespaces

2013-04-23 Thread Patrick Burns
'as.name' doesn't recognize a name with its namespace extension as a name: > as.name("lm") lm > as.name("stats::lm") `stats::lm` > as.name("stats:::lm") `stats:::lm` Is there a reason why it shouldn't? Pat -- Patrick Burns pbu...@pburns.seanet.com twitter: @burnsstat @portfolioprobe http://w

Re: [Rd] Verbose output from R CMD check

2013-04-23 Thread dpleydell
Many thanks Simon for your response >> Identifying the source of the message is a non-trivial problem because there >> are a large number of calls to printf and fprintf etc in several thousands >> of lines of code spread over many different *.c files. >> > There should be none, so apparently you

Re: [Rd] Verbose output from R CMD check

2013-04-23 Thread Simon Urbanek
On Apr 23, 2013, at 10:51 AM, dpleydell wrote: > I've been developing a package called foobar for a couple of years now. It > has evolved through various versions, but has always contained compiled C > code. Recently, R CMD check has started generating the following message > > [START QUOTE] >

Re: [Rd] parallel::mclapply does not return try-error objects with mc.preschedule=TRUE

2013-04-23 Thread Karl Forner
> >> Is this a bug ? >> > > Not in parallel. Something else has changed, and I am about to commit a > different version that still works as documented. > > Thanks for replying. [[alternative HTML version deleted]] __ R-devel@r-project.org maili

[Rd] Verbose output from R CMD check

2013-04-23 Thread dpleydell
I've been developing a package called foobar for a couple of years now. It has evolved through various versions, but has always contained compiled C code. Recently, R CMD check has started generating the following message [START QUOTE] R CMD check foobar_1.7.5.tar.gz * using log directory ‘/h

Re: [Rd] vignettes: problems with PDF compaction

2013-04-23 Thread Michael Friendly
On 4/22/2013 5:51 PM, Uwe Ligges wrote: But this doesn't do anything, not even changing the timestamp on the file, because the file size doesn't change enough. Either you changed it or not, there is no "not enough". I meant that the code in tools::compact compares the sizes of the old and new

Re: [Rd] Line breaks in rd files

2013-04-23 Thread Duncan Murdoch
On 23/04/2013 5:34 AM, Knut Krueger wrote: How can I add a new line in an rd file f.e between references? As Uwe said, for a reference list a blank line between references is probably best: in most reference styles, each reference is its own paragraph. For other uses \cr will insert a bre

Re: [Rd] parallel::mclapply does not return try-error objects with mc.preschedule=TRUE

2013-04-23 Thread Prof Brian Ripley
On 11/04/2013 12:43, Karl Forner wrote: Hello, Consider this: 1) library(parallel) res <- mclapply(1:2, stop) #Warning message: #In mclapply(1:2, stop) : # all scheduled cores encountered errors in user code is(res[[1]], 'try-error') #[1] FALSE 2) library(parallel) res <- mclapply(1:2, stop,

Re: [Rd] httpd error with and help_type = 'html', package = NULL

2013-04-23 Thread Prof Brian Ripley
Is this not PR#15282? No one has got to it yet. On 23/04/2013 07:32, Michael Nelson wrote: Having loaded a package that masks an object from another package, calling help(conflictedname, help_type = 'html') instead of producing a page giving the choices of help page available The page prod

Re: [Rd] Help: Where can I find the code for 'C_Cdqrls'?

2013-04-23 Thread Prof Brian Ripley
First, it is not a function. It is an R object in the stats namespace and you can look at it like any other object: > stats:::C_Cdqrls $name [1] "Cdqrls" $address attr(,"class") [1] "RegisteredNativeSymbol" $dll DLL name: stats Filename: /Users/ripley/R/R-devel/library/stats/libs/stats.so Dy

Re: [Rd] Help: Where can I find the code for 'C_Cdqrls'?

2013-04-23 Thread Uwe Ligges
On 23.04.2013 09:35, 赵自强 wrote: Dear all, I’m not sure if it is O.K. to ask this question here. But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘. Look into the R sources: grepping for dqrls show

Re: [Rd] Line breaks in rd files

2013-04-23 Thread Uwe Ligges
On 23.04.2013 11:34, Knut Krueger wrote: How can I add a new line in an rd file f.e between references? Keep a blank line between references. Uwe Ligges Knut __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] httpd error with and help_type = 'html', package = NULL

2013-04-23 Thread Michael Nelson
Having loaded a package that masks an object from another package, calling help(conflictedname, help_type = 'html') instead of producing a page giving the choices of help page available The page produced is Error in httpd("/library/NULL/help/nobs", NULL, NULL, c(48, 6f, 73, 74, : replacem

[Rd] Line breaks in rd files

2013-04-23 Thread Knut Krueger
How can I add a new line in an rd file f.e between references? Knut __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Help: Where can I find the code for 'C_Cdqrls'?

2013-04-23 Thread 赵自强
Dear all, I’m not sure if it is O.K. to ask this question here. But where can I find the code for the function ‘C_Cdqrls’ which is called by the R function ‘lsfit‘. Thank you all. Sorry for being naïve if so. -