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

Loading python virtual environment within renv #1986

Closed
davidrsch opened this issue Sep 20, 2024 · 1 comment
Closed

Loading python virtual environment within renv #1986

davidrsch opened this issue Sep 20, 2024 · 1 comment

Comments

@davidrsch
Copy link

davidrsch commented Sep 20, 2024

Hello, I will like to know if there is a standard way to restore your virtual environment in Github Actions when using also python. I have created a python virtual environment inside my renv folder:

renv
  |_ python
       |_ virtualenvs
            |_ renv-python-3.11

And in my workflow I have:

- name: Setup R
        uses: r-lib/actions/setup-r@v2
        with:
          r-version: renv

- name: Setup R dependencies
        uses: r-lib/actions/setup-renv@v2

Which returns Error: error restoring Python packages [error code 1] after restoring r. I am guessing this is because I haven't setup python. Is there a standard way to do this with renv?

@davidrsch
Copy link
Author

Hello, issue solve it wasn't returning error because couldn't find python installation or anything it was returning error due to a package requirement being to specific.

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

No branches or pull requests

1 participant