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

Allow searcK to detect multiple cores #262

Open
marineleroi opened this issue Nov 22, 2021 · 0 comments
Open

Allow searcK to detect multiple cores #262

marineleroi opened this issue Nov 22, 2021 · 0 comments

Comments

@marineleroi
Copy link

marineleroi commented Nov 22, 2021

By default searchK() uses only one core. If one wants to use all available cores, they have to explicitly specify cores = parallel::detectCores() which is inconvenient because the underlying parallel::mclapply() function already seems to do that when the value is null.

Passing cores = NULL ends up with the following error on version 1.3.6:

searchK(out$documents, out$vocab, K=c(10:20), data=meta, cores = NULL)
Error in if (cores == 1) { : argument is of length zero

It would be convenient to allow the above snippet to work.

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