r - Pre- or post-process roxygen snippets -
Is there a mechanism by which I can replace the vaccine that the vaccine sees, before it becomes vaccine- & rd ; Does the conversion happen?
For example, suppose I have:
# 'My function does stuff with numbers #' # 'This takes input `x` and It does something with the # '@ ultimate x one number now, suppose i want to make some conversion of the comment before ringing, for example in place of all the examples in bakatix \ code {} . Ie: Preprocessing & lt; - Function (txt) {gsub ('`([^] +)`', '\\\\ code {\\ 1}', txt)} # cat (preprocess ('one input `x' 'and its Does anything with it.)) Takes the #input / code {x} and does something with it Do I feed the preprocess in any way in the vaccine Can I post (or will work in this case) before, does Roccin produce his document? I do not want to make permanent search-space in my .r files. As you can guess from my example, I am aiming towards some rudimentary MarkTown support in my vaccine comments, and therefore my .r files have to be protected from readability (and < Code> \ Code {..} Content Programmatically). Should I just write my version of roxygenise which runs preprocess in my file, the vaccine-style comments were detected, they were temporarily Save somewhere, and then runs real roxygenise on them?
After a few years, it seems that the vaccine has a function Register.preref.parsers , which can be used to inject someone, its own parser in the vaccine; This is an example of this kind of use (MarkDown + Roxyx = Maxim), which is a lot of MarcDown processing of vaccine observations Only streamlined implementation (though cave Commonmark is for SPEC), and you can see how it is used in the use of that package, I eagerly await "pandok + roxy = pendoxine" ...):
Comments
Post a Comment