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

Environment variables are not available in R sessions #276

Closed
cmdoret opened this issue Nov 21, 2022 · 2 comments · Fixed by SwissDataScienceCenter/renku-notebooks#1339
Closed
Assignees
Labels
kind/bug Something isn't working

Comments

@cmdoret
Copy link
Member

cmdoret commented Nov 21, 2022

When starting a new session in an R project on Renkulab, environment variables added through the session creation UI are not available in Rstudio.
This works in python projects.

How to reproduce:

  1. New project with R minimal template
  2. New session
  3. Add env variable, e.g. TEST
  4. Start session
  5. In Rstudio's terminal printenv | grep TEST
  6. No output

Expected outcome:

  • env variable exists

Environment:
Tested with the default R-minimal template:

  • Image: renku/renkulab-r:4.2.0-0.13.1
  • Renku version: 1.9.1
  • Template; r-minimal 0.3.5
@cmdoret cmdoret added the kind/bug Something isn't working label Nov 21, 2022
@olevski olevski moved this to Backlog in renku-python Nov 21, 2022
@olevski
Copy link
Member

olevski commented Nov 21, 2022

Confirmed that these work in jupyterlab but not in rstudio.

It is because rstudio requires environment variables to be defined in a specific way.

This means that the notebook service would have to make additional adjustments for the variables to propagate to rstudio.

@olevski
Copy link
Member

olevski commented Nov 21, 2022

See here on all the options on how to specify environment variables for Rstudio: https://rviews.rstudio.com/2017/04/19/r-for-enterprise-understanding-r-s-startup/

@olevski olevski moved this from Backlog to Ready in renku-python Nov 30, 2022
@olevski olevski moved this from Ready to In Progress in renku-python Nov 30, 2022
@olevski olevski self-assigned this Nov 30, 2022
Repository owner moved this from In Progress to Done in renku-python Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants