[Roxygen-devel] Fwd: file which doesn't seem to process \dontrun properly in examples section
Steve Lianoglou
mailinglist.honeypot at gmail.com
Mon Jun 4 17:28:39 CEST 2012
Hi,
On Mon, Jun 4, 2012 at 11:13 AM, Manuel J. A. Eugster
<Manuel.Eugster at 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 at 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 at 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
More information about the Roxygen-devel
mailing list