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

Add tip in error message because of non-continuous traits #60

Open
Rekyt opened this issue Oct 21, 2022 · 1 comment
Open

Add tip in error message because of non-continuous traits #60

Rekyt opened this issue Oct 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Rekyt
Copy link
Member

Rekyt commented Oct 21, 2022

It's the second person that contacts me because of the non-continuous trait error message:

fundiversity/R/fd_fric.R

Lines 65 to 68 in 0a58ab6

if (!is.numeric(traits)) {
stop("Non-continuous trait data found in input traits. ",
"Please provide only continuous trait data", call. = FALSE)
}

Maybe we should point people to multivariate analyses to get back continuous traits. Like adding a line "If you want to use non-numeric traits with fundiversity, you have to transform them to obtain numerical traits beforehand (e.g., through a PCoA or similar techniques)"

It would probably be too specific, but at least would point user to ways to overcome the issue themselves.

@Rekyt Rekyt added the enhancement New feature or request label Oct 21, 2022
@Bisaloo
Copy link
Collaborator

Bisaloo commented Oct 21, 2022

For this kind of situation, instead of creating super long error messages, especially with potentially subjective information, I like to create a FAQ vignette.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants