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
Avoid warnings with R hooks when renv version don't match #1841
Conversation
7368d48
to
4ddc13e
Compare
yeah seems fine! hmm yeah licensing I didn't think about that -- perhaps we can make a |
{renv} is MIT licensed, as pre-commit, so maybe we don’t need to include additional licenses? We can also ask in https://github.com/rstudio/renv how they suggest to handle this, because essentially every project that uses {renv} has this file in version control, and I haven’t seen any special copyright attribution in any project that uses {renv} (although our case might not be 100% the same). |
I would rather lean on the side of caution here -- it's not difficult to abide by the license terms -- we just need a copy of their license in our source tree and our distributables we could even put it in the resources directory so it gets copied for the empty template into sorry for the slow response, things have been crazy recently |
No problem.
So licensing for R packages work usually like this: Put the type of license in the
Agree |
hmmmmm given the contents of that file, I'm not sure they've licensed it for redistribution -- we would probably want to clarify with them what terms that it is allowed to be copied and redistributed. I don't see an actual license file in their repo beyond that 2-liner (which probably has no legal precedence). I think it would be wrong to take that and stuff it into a MIT license (I think that would be relicensing without approval) -- we should probably start an issue thread on their side unless there's an actual copyable license file! |
Sure, I can open an issue in their repo so we can figure things out and be on the Safe side. I know the authors and I think they don’t have fundamental objections to what we are doing here. |
FWIW this is just the canonical way that R packages (at least, those destined for CRAN) declare that they are MIT-licensed (which I agree is a bit strange). But perhaps I can change this so the, shall we say, CRAN-compatible-declaration-of-MIT-license version of the LICENSE file is used on CRAN, but the "real" version is used on GitHub. |
yeah I think it would be sufficient for my uses to have a |
I think at some point, |
Unfortunately this is explicitly not accepted by CRAN. 😞 |
I've made a change now so that:
Hopefully this is a fair compromise. |
@kevinushey thanks a ton! that's super helpful! |
Great. @asottile how do we progress from here? From the {renv} authors: rstudio/renv#738
|
for now let's take their |
Please see c3d186d how I added the licenses:
Is that what you had in mind? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attempts to solve #1835 as initially outlined in #1835 (comment). To further avoid warnings for differing R versions, we suppress warning messages on environment loading. To not write infrastructure like
.Rprofile
, we userenv::load()
overrenv::activate()
. For installing additional dependencies, we also added skipping of the startup process. I think after #1878, I might have fixed the biggest bugs I created -.-