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
I use them to generate nice looking svg badges in my documentation.
My question is: would it be possible to generate a new tag, say, @badge that accepts keywords and acts on them by generating the corresponding code described above? I mean something like:
From what I have read from the docs, creating a new tag creates a new section, so it would not apply to my case here because I need to edit an existing section, i.e., Description. So it seems to me that creating a new roclet is the way to go but I am not sure still if I can use that approach to change an existing section such as Description... I am sorry if I sound confusing, it could be because I am confused :) See also my other question about what is a roclet: #1086.
The text was updated successfully, but these errors were encountered:
Here is an example of what I am trying to achieve.
Here is a snippet of an roxygen comment block:
Now, you see those three
\Sexpr
commands? They are analogous to those used, e.g., in rlang:https://github.com/r-lib/rlang/blob/a90b04b9d6a17f1aabadaed357784efc22116d2a/R/eval-tidy.R#L1-L6
I use them to generate nice looking svg badges in my documentation.
My question is: would it be possible to generate a new tag, say,
@badge
that accepts keywords and acts on them by generating the corresponding code described above? I mean something like:in context:
From what I have read from the docs, creating a new tag creates a new section, so it would not apply to my case here because I need to edit an existing section, i.e., Description. So it seems to me that creating a new roclet is the way to go but I am not sure still if I can use that approach to change an existing section such as Description... I am sorry if I sound confusing, it could be because I am confused :) See also my other question about what is a roclet: #1086.
The text was updated successfully, but these errors were encountered: