Skip to content

default quanteda_options when namespace not loaded #864

@mpadge

Description

@mpadge

Finally enjoying getting to use the package for initial flipper explorations, but discovered that quanteda_options is used throughout, yet is not recognised when the full namespace is not loaded.

pkgs <- tools::CRAN_package_db()
pkg_txt <- apply (cbind (pkgs$Title, pkgs$Description), 1, paste, collapse = " ")
pkg_corpus <- quanteda::corpus (pkg_txt)
pkg_dfm <- quanteda::dfm (pkg_corpus, remove = stopwords ("english"), stem = TRUE,
      remove_punct = TRUE)
## Error in if (verbose) catm("Creating a dfm from a corpus ...\n") :
## argument is of length zero

The quick and dirty solution would be to include an extra

if (is.null (verbose))
   verbose = FALSE

in ... every function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions