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

summarizeLoci not working #60

Open
kmartien opened this issue Mar 1, 2023 · 0 comments
Open

summarizeLoci not working #60

kmartien opened this issue Mar 1, 2023 · 0 comments

Comments

@kmartien
Copy link

kmartien commented Mar 1, 2023

Hi,
I'm trying to use the summarizeLoci() function but am getting an error: ! 'diversity' is not an exported object from 'namespace:sprex'

Full Backtrace below. I'm happy to send code and data files if that's helpful, just ask me for the first 16 lines of my CNMI.diversity.summary.R script (in case you ask for this in the distant future and I've forgotten where this came from!).

diversity.CNMI <- strataG::summarizeLoci(strat.gtype$CNMI)
Error in dplyr::summarize():
ℹ In argument: value = fun(.data$allele, ...).
ℹ In group 1: locus = "Haplotype".
Caused by error:
! 'diversity' is not an exported object from 'namespace:sprex'
Run rlang::last_error() to see where the error occurred.
rlang::last_error()
<error/rlang_error>
Error in dplyr::summarize():
ℹ In argument: value = fun(.data$allele, ...).
ℹ In group 1: locus = "Haplotype".
Caused by error:
! 'diversity' is not an exported object from 'namespace:sprex'


Backtrace:

  1. strataG::summarizeLoci(strat.gtype$CNMI)
  2. dplyr:::summarise.grouped_df(., value = fun(.data$allele, ...))
  3. dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
  4. dplyr:::map(quosures, summarise_eval_one, mask = mask)
  5. base::lapply(.x, .f, ...)
  6. dplyr (local) FUN(X[[i]], ...)
  7. mask$eval_all_summarise(quo)
  8. dplyr (local) eval()
    Run rlang::last_trace() to see the full context.
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