Hi,

On Mon, Jun 4, 2012 at 11:13 AM, Manuel J. A. Eugster
<manuel.eugs...@stat.uni-muenchen.de> wrote:
>> Am Montag, 4. Juni 2012, 16:48:30 schrieb Manuel J. A. Eugster:
>>>
>>> As workaround, you could try to move the example to an external
>>> file and use the "@example path/relative/to/packge/root" tag to
>>> include it. However, I am  not sure if this works.
>>
>>
>> workaround #2: try using slot(fit.stable, "fit") instead of fit.stable@fit
>> to
>> avoid the @ character.
>
>
> Yes, that's the better solution anyway.

And perhaps an even better solution is to not access the slot directly
-- which is to say, don't use `@` or `slot(...)` since it's considered
 "good form" to provide accessors to slots via methods rather than
having users directly manipulate the internals of your objects.

So, in this case, instead of `fit.stable@fit` or `slot(fit.stable,
'fit')` you'd have: `fit(stable.fit)`

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
_______________________________________________
Roxygen-devel mailing list
Roxygen-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel

Reply via email to