dgkf / dgkf/R

Allow non-environment "environments"

Open
#57 2 comments 0 reactions 0 assignees View on GitHub
meta-proposal theme-internals
Dominant language
Rust
Stars
145
Forks
5
PR merge metrics
No merged PRs in 30d

Description

In R today, every frame has an environment. However, the likes of `dplyr` and `ggplot2` have shown that there's value in allowing other types of data to act as an environment (akin to using `within()`).

Although this would be "non-standard", this would allow calling `eval()` on an expression using an "environment" defined by a `data.frame`, `list`, or other data object. This would be similar to `attach`, but with mutable access to data.

This would also allow someone to implement a `get` and `assign` method for their data to allow it to operate as its own "environment" as part of a call stack, which might make it easier to implement `dplyr`-y interfaces.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.