Skip to content

summarizeLoci not working #60

Open
@kmartien

Description

@kmartien

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions