Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial matching #92

Closed
chainsawriot opened this issue Aug 15, 2024 · 2 comments
Closed

Partial matching #92

chainsawriot opened this issue Aug 15, 2024 · 2 comments

Comments

@chainsawriot
Copy link
Collaborator

Warning (test-smallk.R:45:5): small k topicmodels
partial match of 'topic' to 'topics'
Backtrace:
     ▆
  1. ├─testthat::expect_error(...) at test-smallk.R:45:5
  2. │ └─testthat:::expect_condition_matching(...)
  3. │   └─testthat:::quasi_capture(...)
  4. │     ├─testthat (local) .capture(...)
  5. │     │ └─base::withCallingHandlers(...)
  6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  7. └─oolong::create_oolong(...)
  8.   └─Oolong_test_tm$new(...) at oolong/R/oolong.R:114:9
  9.     └─oolong (local) initialize(...)
 10.       └─oolong:::.generate_test_content(...) at oolong/R/oolong_tm.R:213:17
 11.         ├─oolong:::.extract_ingredients(...) at oolong/R/oolong_tm.R:125:5
 12.         └─oolong:::.extract_ingredients.input_model_s3_topicmodels(...) at oolong/R/oolong_tm.R:40:5

Warning (test-ui.R:42:5): witi basic
partial argument match of 'n' to 'n_topics'
Backtrace:
     ▆
  1. ├─testthat::expect_error(...) at test-ui.R:42:5
  2. │ └─testthat:::expect_condition_matching(...)
  3. │   └─testthat:::quasi_capture(...)
  4. │     ├─testthat (local) .capture(...)
  5. │     │ └─base::withCallingHandlers(...)
  6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  7. ├─oolong::witi(abstracts_warplda, abstracts$text, input_dfm = abstracts_dfm)
  8. │ └─oolong::create_oolong(...) at oolong/R/oolong_ui.R:17:5
  9. │   └─Oolong_test_tm$new(...) at oolong/R/oolong.R:114:9
 10. │     └─oolong (local) initialize(...)
 11. │       └─oolong:::.generate_test_content(...) at oolong/R/oolong_tm.R:213:17
 12. │         ├─oolong:::.extract_ingredients(...) at oolong/R/oolong_tm.R:125:5
 13. │         └─oolong:::.extract_ingredients.input_model_s3_warplda(...) at oolong/R/oolong_tm.R:40:5
 14. │           └─input_model$transform(input_dfm) at oolong/R/oolong_warplda.R:10:9
 15. │             └─private$transform_internal(...)
 16. └─compiler:::tryCmpfun(`<fn>`)
 17.   ├─base::tryCatch(...)
 18.   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 19.   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 20.   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 21.   └─compiler::cmpfun(f)
 22.     └─compiler:::genCode(body(f), ncntxt, loc = loc)
 23.       └─compiler:::cmp(e, cb, cntxt, setloc = FALSE)
 24.         └─compiler:::cmpCall(e, cb, cntxt)
 25.           └─compiler:::tryInline(call, cb, cntxt)
 26.             └─compiler (local) h(e, cb, cntxt)
 27.               └─compiler:::cmp(subexp, cb, ncntxt, setloc = FALSE)
 28.                 └─compiler:::cmpCall(e, cb, cntxt)
 29.                   └─compiler:::tryInline(call, cb, cntxt)
 30.                     └─compiler (local) h(e, cb, cntxt)
 31.                       └─compiler:::cmpSymbolAssign(symbol, value, superAssign, cb, cntxt)
 32.                         └─compiler:::cmp(value, cb, ncntxt)
 33.                           └─compiler:::cmpCall(e, cb, cntxt)
 34.                             └─compiler:::checkCall(...)
 35.                               ├─base::tryCatch(...)
 36.                               │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 37.                               │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 38.                               │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 39.                               └─base::match.call(def, call)

@chainsawriot
Copy link
Collaborator Author

dselivanov/text2vec#347

chainsawriot added a commit that referenced this issue Aug 15, 2024
chainsawriot added a commit that referenced this issue Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant