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

Error "The x argument of as_tibble() can't be missing as of tibble 3.0.0." when using CombinedConfidence function #5

Open
viictoriaeriksson opened this issue Oct 17, 2024 · 2 comments

Comments

@viictoriaeriksson
Copy link

Hi,
I have tried to use the CombinedConfidence function. However, I get the error "The x argument of as_tibble() can't be missing as of tibble 3.0.0." from the " ScoreTable <- as_tibble()" in SiriusScores1 and SiriusScores2 and have not manage to get around the problem.
Therefore, I was wondering if you have a solution for how to solve this when a newer package version of tibble is used.

Thank in advance! :)

@PilleriinPeets
Copy link
Collaborator

Hello. I have lately had the same problems with new R versions when using as_tibble() function. Can you try changing the as_tibble() into function tibble(). Please let me know if it works for you. Then I will also change the file in GitHub.

@viictoriaeriksson
Copy link
Author

Hi, Thank you for your reply!
The error was resolved by changing to tibble() instead. However, now I receive another error instead that says:
"Error in select():
! Can't select columns that don't exist.
✖ Column rank doesn't exist.
Run rlang::last_trace() to see where the error occurred.
Warning message:
There was 1 warning in mutate().
ℹ In argument: id = as.double(id).
Caused by warning:
! NAs introduced by coercion "

When I try CombinedConfidence function I have it as "conf_level <- CombinedConfidence(folderwithSIRIUSfiles, maxrank = 1)". Not sure if the new error is due to me not using the function properly or it is something else I have missed.

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

2 participants