Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for djm
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #278365 |
Another improvement: you say `<<-` "goes through all environments", but that's not quite right. It goes through the chain of parent environments to the function evaluation environment. If it finds an unlocked variable matching the name you are assigning to, it assigns there. (Package variables ar... (more) |
— | 8 months ago |
Comment | Post #278365 |
You end up saying `assign()` is safer. You might want to put that first, and leave the `<<-` super-assignment operator for later. The fact that `<<-` assigns to the global environment when it doesn't find the variable in parent environments is more of a design flaw than a good thing. (more) |
— | 8 months ago |
Comment | Post #289655 |
Does this have something to do with RStudio? (more) |
— | 8 months ago |