Nothing
Code
worker(type = "keywords", idf = empty_idf)
Condition
Error in `new_worker()`:
! The custom IDF dictionary `<empty-idf>` contains no entries.
Code
worker(type = "keywords", idf = invalid_idf)
Condition
Error in `new_worker()`:
! Invalid custom IDF dictionary `<invalid-idf>` at line 1: IDF value must be numeric.
Code
worker(type = "keywords", idf = duplicate_idf)
Condition
Error in `new_worker()`:
! Invalid custom IDF dictionary `<duplicate-idf>` at line 3: duplicate word `北京烤鸭`; first defined at line 1.
Code
worker(type = "keywords", idf = 5)
Condition
Error in `worker()`:
! `idf` must be `NULL` or a path to an IDF dictionary file.
Code
worker(type = "keywords", idf = "/nonexistent/idf.txt")
Condition
Error in `worker()`:
! `idf` must point to an existing IDF dictionary file.
Code
keywords(keyword_text, keys_worker, "legacy")
Condition
Error in `keywords()`:
! `...` must be empty.
x Problematic argument:
* ..1 = "legacy"
i Did you forget to name an argument?
Code
keywords(keyword_text, keys_worker, format = "bad-format")
Condition
Error in `keywords()`:
! `format` must be one of "vector", "data.frame", or "legacy", not "bad-format".
Code
keywords(5, keys_worker)
Condition
Error in `keywords()`:
! `code` must be a single non-NA character string.
Code
keywords(keyword_text, worker(type = "mix"))
Condition
Error in `keywords()`:
! `jiebar` must be a `jieba_keywords` object created with `worker(type = "keywords")`.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.