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

Change Depends to R >= 4.1 #12

Open
krz opened this issue Feb 1, 2022 · 2 comments
Open

Change Depends to R >= 4.1 #12

krz opened this issue Feb 1, 2022 · 2 comments

Comments

@krz
Copy link

krz commented Feb 1, 2022

I was unable to install this package on my R 4.0.4 machine and tracked the issue down to line 424 in generics.R file:
try_result <- tryCatch(subset <- rep_len(TRUE, dim(result)[length(dim(result))]), error = \(e) e)

\(e) e is a new anonymous function introduced in R 4.1, so either the Depends requirements in DESCRIPTION should be updated or the usage of this new syntax should be avoided (for now).
I would opt for changing to old-style functions as 4.1 is still relatively new.

@vdorie
Copy link
Owner

vdorie commented Feb 1, 2022

Thanks for pointing that out. I've changed it back to use the old syntax, but will have to test that it works on R 4.0 more comprehensively.

@krz
Copy link
Author

krz commented Feb 3, 2022

thanks, installation from github now works for me.

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