You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above allows you to keep a standalone, syntax-valid file incl/my_fcn.R that can be source():ed while still having additional Rd markup in the example() code.
The text was updated successfully, but these errors were encountered:
It is a bit hard to keep the order internally, because roxygen collates all @examples blocks previously, before putting that and the @example files together.
Also, CRAN do not like this, potentially, depending on what you put in the setup and teardown chunks.
Looking at topic_add_examples(), I don't think it should be too hard to interleave @example and @examples in the order that they're encountered, rather than in individual blocks.
hadley
changed the title
WISH: @import <file>
Preserve order of @example and @examples
Jul 21, 2019
I'd like to propose a new tag
@import
that takes a file as input. It reads the content of that file and injects it as is.One use case would be to allow for something like (just a toy example):
The above allows you to keep a standalone, syntax-valid file
incl/my_fcn.R
that can besource()
:ed while still having additional Rd markup in theexample()
code.The text was updated successfully, but these errors were encountered: