Description
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 indplyr::summarize()
:
ℹ In argument:value = fun(.data$allele, ...)
.
ℹ In group 1:locus = "Haplotype"
.
Caused by error:
! 'diversity' is not an exported object from 'namespace:sprex'
Runrlang::last_error()
to see where the error occurred.
rlang::last_error()
<error/rlang_error>
Error indplyr::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:
- strataG::summarizeLoci(strat.gtype$CNMI)
- dplyr:::summarise.grouped_df(., value = fun(.data$allele, ...))
- dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
- dplyr:::map(quosures, summarise_eval_one, mask = mask)
- base::lapply(.x, .f, ...)
- dplyr (local) FUN(X[[i]], ...)
- mask$eval_all_summarise(quo)
- dplyr (local) eval()
Runrlang::last_trace()
to see the full context.