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

Update renv settings to ignore package self #150

Merged
merged 3 commits into from
Nov 2, 2024
Merged

Conversation

NeuroShepherd
Copy link
Owner

No description provided.

@NeuroShepherd
Copy link
Owner Author

NeuroShepherd commented Nov 2, 2024

I was suddenly no longer able to deploy the app to rsconnect (from any branch or with changes to the GitHub Action). This PR address this issue.

Diagnosis:

Deployment was failing at the renv::deployApp() stage of my action with an error from the rsconnect:::parseRenvDependencies(). The information from the GH runner wasn't sufficient so I ran this internal function locally, and it also produced an error because the lock file was out of sync with the library. The only "out of sync" component is the package actually being developed in this repository. (IMO this function should just return a warning.)

Solution:

Manually add the package to the renv ignored packages with renv::settings$ignored.packages("ordinalsimr"), snapshot everything again, and push the changes to GitHub.

@NeuroShepherd NeuroShepherd merged commit 3245ff7 into updates Nov 2, 2024
1 check passed
@NeuroShepherd NeuroShepherd deleted the gh-action-fix branch November 2, 2024 18:44
NeuroShepherd added a commit that referenced this pull request Nov 4, 2024
* Update renv settings to ignore package self

* Downgrade R version in lockfile to 4.4.1 to match rsconnect server

* Declare r setup to use renv R version
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

Successfully merging this pull request may close these issues.

1 participant