Skip to content

Commit

Permalink
Merge pull request #2074 from quanteda/fix-man
Browse files Browse the repository at this point in the history
Fix roxygen warning
  • Loading branch information
kbenoit committed Mar 4, 2021
2 parents 3535dcc + 8e21666 commit 50d7df9
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 23 deletions.
18 changes: 14 additions & 4 deletions R/tokens-methods-base.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#' Base method extensions for tokens objects
#'
#' Extensions of base R functions for tokens objects.
#' @name tokens-class
#' @param x a tokens object
#' @keywords internal tokens
NULL

#' @rdname as.tokens
#' @return `as.list` returns a simple list of characters from a
#' [tokens] object.
Expand Down Expand Up @@ -95,7 +103,8 @@ print.tokens <- function(x, max_ndoc = quanteda_options("print_tokens_max_ndoc")
}


#' @method "[" tokens
#' @rdname tokens-class
#' @method [ tokens
#' @param i document names or indices for documents to extract.
#' @param drop_docid if `TRUE`, `docid` for documents are removed as the result
#' of extraction.
Expand Down Expand Up @@ -126,7 +135,8 @@ print.tokens <- function(x, max_ndoc = quanteda_options("print_tokens_max_ndoc")
tokens_recompile(result)
}

#' @method "[[" tokens
#' @rdname tokens-class
#' @method [[ tokens
#' @export
#' @noRd
#' @examples
Expand Down Expand Up @@ -159,7 +169,7 @@ lengths.tokens <- function(x, use.names = TRUE) {
NextMethod()
}

#' @rdname as.tokens
#' @rdname tokens-class
#' @param t1 tokens one to be added
#' @param t2 tokens two to be added
#' @return `c(...)` and `+` return a tokens object whose documents
Expand Down Expand Up @@ -211,7 +221,7 @@ lengths.tokens <- function(x, use.names = TRUE) {
tokens_recompile(result)
}

#' @rdname as.tokens
#' @rdname tokens-class
#' @export
c.tokens <- function(...) {
x <- list(...)
Expand Down
19 changes: 0 additions & 19 deletions man/as.tokens.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions man/tokens-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50d7df9

Please sign in to comment.