Open chainsawriot opened 4 weeks ago
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)
https://github.com/dselivanov/text2vec/blob/dce877b2e315fc9f7678929cb0665a751465b5cb/R/model_LDA.R#L311-L313
dselivanov/text2vec#347