Skip to content

fix typo of nvar in smooth.basis1() #10

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

Closed

Conversation

yjunechoe
Copy link

I encountered a bug due to what I think was a typo in smooth.basis1() where 1:nvar is sometimes 1:var instead. While nvar is defined (and used correctly in other for loops), var is just the function stats::var() - this caused a cryptic error Error in 1:var : NA/NaN argument when the function was called internally via smooth.basis().

Thanks!

@JamesRamsay5
Copy link
Owner

JamesRamsay5 commented Mar 5, 2024 via email

@yjunechoe
Copy link
Author

Thank you for the quick response! 6.1.8 indeed fixes my code. I'll close this as complete :)

@yjunechoe yjunechoe closed this Mar 5, 2024
@yjunechoe yjunechoe deleted the smooth.basis1-nvar-typo branch March 5, 2024 19:57
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

Successfully merging this pull request may close these issues.

2 participants