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

Deployment fails with lock file in custom location #1122

Open
chlebowa opened this issue Dec 16, 2024 · 0 comments
Open

Deployment fails with lock file in custom location #1122

chlebowa opened this issue Dec 16, 2024 · 0 comments

Comments

@chlebowa
Copy link

chlebowa commented Dec 16, 2024

I am running a shiny app in an R project, let's call it the parent app. The project has a renv.lock file but it is not located in the project root. The file's location is defined in the environment variable RENV_PATHS_LOCKFILE, which is set in the .Rprofile of the project, before renv/activate.R is run. So far, so good.

The parent app generates code for another shiny app, let's call this one the daughter app. The daughter app file is placed in a separate directory in within the project. From there the daughter app is deployed while the parent app is running.

This process fails because the lock file is not found. It does work when the lock file is located in the project root (as usual) or when it is copied from the location specified by the env var to the project root before calling deployApp. Note that there is no attempt at creating a lock file - it is not found where expected and an error is raised.

Can this be fixed so that custom location of the lock file is taken into account?

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