-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add "Repository" entry to keep {renv} happy #851
Conversation
Great, thanks for the PR! @rok-cesnovar @andrjohns I can't think of any reason why this would cause any issues, and it would resolve a spurious warning from renv, so I think we should do it. But before I merge this, just wanted to check if you know of any reason why we shouldn't do it. |
All for it. |
Also, @andrewheiss don't worry about the failing unit tests. Those are presumably due to #843 and should get sorted out when that's merged. |
Ok good, I won't :) Everything tested fine on my local fork on macOS, but I haven't updated to 2.33 yet |
I don't think you want to add it directly to the source package here; it should only be added when the package is built, if the built package is going to be uploaded to the public repository. Otherwise, tools that install this package from GitHub (e.g. |
Perhaps more succinctly: I think the binary packages that are built and published at https://github.com/stan-dev/r-packages should include |
Ahh that makes sense. In that case, disregard this PR @jgabry. The |
Thanks for the info @kevinushey!
Yeah we can look into adding this only when the package is added to the repository for distributing the packages and not in the package source code itself. I'll close this PR but leave the issue open. Basically we use https://mc-stan.org/r-packages/ (which is just a drat repo) to host cmdstanr (not on CRAN) and then for experimental versions of packages that have a stable version on CRAN (e.g. preview versions of rstan or rstanarm, etc.). |
Submission Checklist
Summary
Add a repository entry to DESCRIPTION so that renv knows that this comes from a non-CRAN repository (addresses #850)
Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Andrew Heiss
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: