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 when trying init(): object of type 'closure' is not subsettable #2029

Open
hkaspersen opened this issue Oct 30, 2024 · 5 comments
Open

Comments

@hkaspersen
Copy link

Hello!
I am trying to make renv work on an existing project, but no matter what I do I always get the error Error in FUN(X[[i]], ...) : object of type 'closure' is not subsettable when using renv::init().

I have a description file in my project, but I want renv to use all the files in the project (implicit mode). However I do get the same error with both methods.

I have installed the newest version of renv (1.0.11), on R version 4.3.0.

Any idea what this may be?

@kevinushey
Copy link
Collaborator

Any chance you can share the project? Is it available on GitHub?

@hkaspersen
Copy link
Author

Sorry the project is private and I cannot make it public unfortunately.
Is there any specific information I could provide that will help?

@hkaspersen
Copy link
Author

FYI I also upgraded R to the newest version and reinstalled renv, but I still get the same error every time

@hkaspersen
Copy link
Author

I actually managed to get it to work by using the bare = TRUE parameter!

@kevinushey
Copy link
Collaborator

If you're able to distill this into a reproducible example that you can share, that would help greatly.

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