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

predict.r #119

Open
Turius opened this issue Jan 12, 2023 · 0 comments
Open

predict.r #119

Turius opened this issue Jan 12, 2023 · 0 comments

Comments

@Turius
Copy link

Turius commented Jan 12, 2023

I think I found the source of the issue with predict_h_index()

h <- get_profile(id) if (is.na(h)) return(NA) h <- h$h_index

could be revised to:

h <- get_profile(id)$h_index if (is.na(h)) return(NA)

I tried locally and it works with this modification

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