[Rd] Sys.readlink (on BSD vs Linux)

2016-02-29 Thread Sven E. Templer
sd.org/cgi/man.cgi?query=readlink vs http://linux.die.net/man/1/readlink [2] https://www.freebsd.org/cgi/man.cgi?query=realpath http://linux.die.net/man/1/realpath ----------- Sven E. Templer Bioinformatics Core Group Max Planck Institute for Biology of Ageing Joseph-Stelzmann-Strass

[Rd] Depot for S3 to S4 generics (as in stats4)?

2014-07-06 Thread Sven E. Templer
Dear developers, the implementation of S4 generics for existing S3 ones in the base package is concerned to be a threat to quick startup times [1]. But since S4 is promoted, and S3/S4 interoperability a pain when package developing [2], are there efforts to improve the situation? E.g. an S3 free s

[Rd] checking whether 'INDEX' is up-to-date ... NO

2014-07-11 Thread Sven E. Templer
Dear List, does the warning "checking whether 'INDEX' is up-to-date ... NO" while building a package appear due to missing definitions of functions that are in the NAMESPACE but not INDEX file? Do there also exist other causes (for this warning)? Thank you, Sven.

[Rd] abs, dots and an S4 method.

2014-08-04 Thread Sven E. Templer
Hello, using the primitive abs(x) does not allow more than just the 'x' argument in an S4 method, e.g. abs(x, arg2), since there is no '...' as in trunc(x, ...). To add a ... argument to abs(x), is it sufficient to change the arity in src/main/names.c for abs as in trunc to a value of '-1'? So it

[Rd] 'library(ggplot2)' R CMD check WARNING in vignette R code

2014-09-03 Thread Sven E. Templer
Hi, can I claim the warning that occurs (at R CMD check --as-cran) when I use 'library(ggplot2)' in executed vignette code as SPURIOUS (as mentioned in the CRAN policies at section 'Submission') and (since it is the only warning/error) get my package submission accepted? Has anybody experience wit

Re: [Rd] 'library(ggplot2)' R CMD check WARNING in vignette R code

2014-09-03 Thread Sven E. Templer
This guess solved the issue, thank you! Sven On 4 September 2014 01:16, Uwe Ligges wrote: > > > On 04.09.2014 01:03, Sven E. Templer wrote: >> >> Hi, >> >> can I claim the warning that occurs (at R CMD check --as-cran) when I >> use 'library(ggplot2

Re: [Rd] S4 Method Dispatch for Class Defined as Attribute

2014-10-07 Thread Sven E. Templer
Is setOldClass the solution? e.g. x <- list() class(x) <- "foo" setGeneric("bar", function(x) "bar generic") setOldClass("foo") setMethod("bar", "foo", function(x) "bar foo") bar(x) On 7 October 2014 10:00, Dario Strbenac wrote: > Hello, > > I am writing an interface to some functions from the

Re: [Rd] we need an exists/get hybrid

2014-12-04 Thread Sven E. Templer
David, 'assign' is slower than '<-': ## median expr ## 1 0.1440 X <- letters ## 2 0.4420 .Internal(assign("X", letters, e, F)) ## 3 1.1820 e[["X"]] <- letters ## 4 1.2570

[Rd] Use of tools:::httpdPort in a package for CRAN.

2014-12-05 Thread Sven E. Templer
Hello, I wrote a function to show the help/index page of a package in a browser (and want to include this in an update for a CRAN package). I asked in R-help how to obtain the 00Index.html file, Duncan Murdoch suggested to inspect (see http://r.789695.n4.nabble.com/Obtain-00Index-html-tt4697661.ht