Re: [Rd] Anomaly in [.terms

2011-02-21 Thread Prof Brian Ripley
From the NEWS for 2.13.0-to-be \item \code{drop.terms} and the \code{[} method for class \code{"terms"} no longer add back an intercept. (Reported by Niels Hansen.) so it has been fixed, just not rolled out yet. On Mon, 21 Feb 2011, Terry Therneau wrote: This arose when wo

[Rd] Anomaly in [.terms

2011-02-21 Thread Terry Therneau
This arose when working on an addition to coxph, which has the features that the X matrix never has an intercept column, and we remove strata() terms before computing an X matrix. The surprise: when a terms object is subset the intercept attribute is turned back on. My lines 2 and 3 below were

Re: [Rd] Error in tools::build Vignettes (dir = ".")

2011-02-21 Thread Prof Brian Ripley
On Mon, 21 Feb 2011, Thomas Roth wrote: Dear List, Recently i changed my environment switching from 32bit XP to 64bit W7. I'm trying to rebuild my package with R 2.12.1 (2010-12-16) R CMD check --> everything ok, no warning, error nothing BUT R CMD build --> Error in tools::build Vignettes (

[Rd] Error in tools::build Vignettes (dir = ".")

2011-02-21 Thread Thomas Roth
Dear List, Recently i changed my environment switching from 32bit XP to 64bit W7. I'm trying to rebuild my package with R 2.12.1 (2010-12-16) R CMD check --> everything ok, no warning, error nothing BUT R CMD build --> Error in tools::build Vignettes (dir = ".") : Execution of make failed (tra

[Rd] [R] S4 classes: referencing slots with other slots

2011-02-21 Thread Dan Murphy
Dear Development Group, In trying to answer the subject question myself, I found this thread initiated by Tony from five years ago: http://tolstoy.newcastle.edu.au/R/help/05/12/18169.html. I recently stumbled upon the following S4 answer to Tony's question: setClass("fooWfcn", representation(

Re: [Rd] Using src/ to create executable - how to not build shared objects?

2011-02-21 Thread Simon Urbanek
On Feb 21, 2011, at 3:14 AM, Henrik Bengtsson wrote: > Hi. > > I can use the src/ directory to create executable, cf. Section > 'Package subdirectories' in 'Writing R Extensions": > > "A few packages use the src directory for purposes other than making a > shared object (e.g. to create executab

Re: [Rd] Accessing Package NEWS (NEWS.Rd)

2011-02-21 Thread Kurt Hornik
> Paul Roebuck writes: > Okay. So, after having spent quite some time never really tracking down > why my package NEWS files were unacceptable to readNEWS(), I > noticed that there was recent (to me anyway) development that allowed > the NEWS to be done as an Rd file. Sweet! A more standard fo

Re: [Rd] Problem with documentation of user-defined operator (S4 method)

2011-02-21 Thread Andreas Borg
Just to add this, the operator is defined as follows: standardGeneric for "%append%" defined from package "RecordLinkage" function (x, y) standardGeneric("%append%") Methods may be defined for arguments: x, y Use showMethods("%append%") for currently available ones. So this is not a problem

[Rd] Problem with documentation of user-defined operator (S4 method)

2011-02-21 Thread Andreas Borg
Dear list members, I have defined a binary operator %append% with methods for some S4 classes. In my documentation file, I want to list the methods explicitly by using e.g.: \S4method{\%append\%}{RecLinkData,RecLinkData}(x, y) In the HTML documentation this comes out right as ## S4

[Rd] Using src/ to create executable - how to not build shared objects?

2011-02-21 Thread Henrik Bengtsson
Hi. I can use the src/ directory to create executable, cf. Section 'Package subdirectories' in 'Writing R Extensions": "A few packages use the src directory for purposes other than making a shared object (e.g. to create executables). Such packages should have files src/Makefile and src/Makefile.w