[Rd] \S4method in combination with "[" and "[<-"
Matthias Kohl
Matthias.Kohl at stamats.de
Wed May 21 14:01:03 CEST 2008
Dear Kurt,
I tried your proposal. It also led to
Bad \usage lines found in documentation object 'Subsetting-methods':
\S4method{[}{SeqDataFrames}(x, i, j, k, drop = FALSE)
\S4method{[}{SeqDataFrames}(x, i, j, k) <- value
My sessionInfo:
R version 2.7.0 Patched (2008-05-20 r45741)
i686-pc-linux-gnu
locale:
LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETARY=C;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
Best,
Matthias
Kurt Hornik wrote:
>>>>>> Matthias Kohl writes:
>>>>>>
>
>
>> Dear developers,
>> We want to use "\S4method" to document new S4-methods for "[" and "[<-".
>> We use this for other functions/methods and it works without any
>> problem, but in case of "[" and "[<-" we didn't manage to bring this to
>> work.
>>
>
>
>> The problem occurs in the development version of our package "distrSim"
>> which can be found under http://r-forge.r-project.org/R/?group_id=87.
>>
>
>
>> The warning we obtain is
>>
>
>
>> Bad \usage lines found in documentation object 'Subsetting-methods':
>> \S4method{[}{SeqDataFrames}(x, i, j, k, drop = FALSE)
>> \S4method{[<-}{SeqDataFrames}(x, i, j, k, value)
>>
>
>
>> Of course, we tried several different possibilities but with no
>> success.
>>
>
> You should be able to do the same you would do for indicating S3 methods
> for subsetting. I.e.,
>
> \S4method{[}{SeqDataFrames}(x, i, j, k) <- value
>
> If this does not work, it is a bug. I'll have a look.
>
> -k
>
>
>> Does someone know a package which shows a use case for this situation? I
>> looked in several packages but could not found any.
>>
>
>
>> Thanks for your help!
>> Matthias
>>
>
>
>> --
>> Dr. Matthias Kohl
>> www.stamats.de
>>
>
>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>
--
Dr. Matthias Kohl
www.stamats.de
More information about the R-devel
mailing list