Description
Describe the bug
When setting environment variables like:
import { Sandbox } from '@e2b/code-interpreter'
const sandbox = await Sandbox.create({
env: {
TEST_VAR: '123',
},
})
The envs do not seem to be accessible when running R code in the sandbox:
Sys.getenv("TEST_VAR")
Output:
[1] ""
While it works with Python:
import os
print(os.getenv('TEST_VAR'))
Output:
123
To Reproduce
Steps to reproduce the behavior:
- Create a sandbox with environment variables
- Run R code in the sandbox to try and print an environment variable
- The variable appears empty
- "e2b": "^1.2.0-beta.0",
- "@e2b/code-interpreter": "^1.2.0-beta.1"