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

[Feature Request]: Explore and implement robust sandboxing mechanism #201

Open
gogonzo opened this issue Mar 5, 2024 · 1 comment
Open

Comments

@gogonzo
Copy link
Contributor

gogonzo commented Mar 5, 2024

Feature description

Currently eval_code evaluates each call in the new (cloned) environment where parent.env(env) <- parent.env(.GlobalEnv). When executing library via eval_code new library is added over each qenv@env - i.e. all qenv objects have the same package-namespaces in the search path.

We would like to separate @env as much as possible.

Separate search path for each env@env

So that each qenv is a child of libraries which have been attached in this eval_code

Namnlöst diagram drawio

Separate qenv sessions

Other solution is to separate sessions where eval_code is executed rlang::r_session

@chlebowa
Copy link
Contributor

chlebowa commented Mar 5, 2024

Other solution is to separate sessions where eval_code is executed rlang::r_session

While I do see the appeal, I am not fond of adding R6 dependency to teal.code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants