klutometis/roxygen — Issue #61: `@usage` is removed from data documentation
Author: yihui
Created: 2011-11-19 22:22:04+00:00
State: open

For docType data, the usage is removed for some reason, which is not a correct behaviour. Here is a test case (usage becomes `NULL`):

```r
test_that("@docType data does not remove @usage", {
out <- roc_proc_text(roc, "
#' Title.
#' @name abc
#' @docType data
#' @usage data(abc)
NULL")[[1]]

expect_equal(get_tag(out, "usage")$values, "data(abc)")
})
```