-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is a comprehensive list of roxygen tags? #792
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
So, the roxygen tags are given in two locations: https://github.com/klutometis/roxygen/blob/c42a2f0ddb7006af5ce1f0462064a9c4424e510a/R/rd.R#L24-L66 @hadley Would you be okay if I sent a PR that:
|
I'm not sure where the best place to document these is; probably in vignettes? |
It would be very useful if someone would cross-reference |
The vignettes should now cover everything important. Please file specific issues if you notice missing tags. |
Hello. Looks like this function is not available anymore. Does anybody know where to find the complete list of tags? |
Here is the list of the tags I was able to find:
I found some of them elsewhere, such as |
The |
Thank you @gaborcsardi . Yes I saw these links but the tags are not listed. I was looking for a R vector of the tag names, as in my previous comment. |
I realize this is closed, but +1 for an exhaustive list with usage somewhere. It's not obvious which tags take what arguments, and how they should be provided. As another example, Foo <- R6::R6Class("Foo",
active = list(
## doesn't work, but I think is the natural thing to try to do:
#' @field description of val1
val1 = function() {...},
## works, but perhaps isn't intuitive, since other @tags know their 'context' (@export, for example)
#' @field val2 description of val2
val2 = function() {...}
)
) I find to get an understanding of some tags, I've been relying on reading through roxygen2's testthat tests in this repo ... which probably isn't the norm for most users. I'd be more than happy to help curate such a page/list. I believe most users would find it to be a great resource (as opposed to trying to refer back to various vignettes as a look-up reference ... which, ironically, is the main point of roxygen2 :-) |
I seems to me that R6 and I wonder if the issue is that people don't find the articles at https://roxygen2.r-lib.org/index.html |
I like how renv handles the documentation for its various options, settings, and paths: e.g. |
@gaborcsardi certainly the vignettes are very helpful, but it's difficult to see all the variants listed/enumerated in the context of a vignette's prose. As another example, I 'discovered' the @krlmlr re: renv, +1! This page, for example, is very helpful (especially as a lens into the workings of renv, which helps immensely in self-service debugging/repair when things inevitably don't go perfectly as planned :-) In any case, I'm happy to take a first stab at building such a reference topic, provided y'all think it'd be a useful addition. |
It is not in the documentation, so the best is to assume that it is not officially supported. |
Problem
I've been searching for days to find a comprehensive list of roxygen tags... I have been unable to find one. There are R package cheat sheets, hadleys package documentation, rOpenSci package documentation, R's documentation, and others....
None of these documents has a comprehensive list of various roxygen tags or formatting tags. The only way to find these tags is to look in the source code in order to see what roxygen is parsing.
List of roxygen documentation links
Further Questions and Remarks
The text was updated successfully, but these errors were encountered: