1

Why we use @ in r?

I read some r packages' source code, for example, in dplyr-all-equal.R,

#' @param target,current Two data frames to compare.
#' @param ignore_col_order Should order of columns be ignored?
#' @param ignore_row_order Should order of rows be ignored?
#' @param convert Should similar classes be converted? Currently this will

Why do we need @ after #? I don't think it has the same use as C language.

Thank you for your help!

doraemon
  • 439
  • 3
  • 10
  • Yes!! Thank you. I don't know why I cannot google '@ in r'. The results from google are not relevant... – doraemon Jan 31 '23 at 07:28
  • 5
    You seem to be asking about the `@` symbol in the context of roxygen documentation. See [here](https://cran.r-project.org/web/packages/roxygen2/vignettes/rd.html). The linked 'dupe' is a completely separate use not related to OPs question so have re-opened. – Ritchie Sacramento Jan 31 '23 at 07:32
  • @RitchieSacramento post the link as an answer or close as "read the manuals"? – zx8754 Jan 31 '23 at 08:22
  • 1
    @zx8754 - I was inclined to leave it open, I couldn't find a dupe for it and was hoping someone would provide a more informative response than "read this link". – Ritchie Sacramento Jan 31 '23 at 10:01

0 Answers0