(NOTE: This question includes the word "license". But let's be clear: this question is not asking for licensing advice. It is asking how to simultaneously satisfy the file naming requirements of "software tools commonly used by programmers": Github and CRAN. This question could just as easily be about README files. The mere use of the word "license" seems to make folks trigger happy with their close votes.)
I have an R package who's code I'd like to keep on Github.
In accordance with R's requirements (see here for a note about template licenses), I have in my DESCRIPTION
file the line:
License: MIT + file LICENCE
And my LICENCE
file contains the MIT template, as required:
YEAR: 2017
COPYRIGHT HOLDER: Don Quixote
Github used to figure out licensing only by looking at the LICENSE
file, which allowed me to keep the MIT text in LICENSE
so that Github would detect it and the CRAN template in LICENCE
so that CRAN would detect it. This approach used .Rbuildignore
to hide the Github LICENSE
from CRAN.
But now, a darkness has fallen on the land: Github looks at both LICENSE
and LICENCE
. Finding them different, it abandons its attempt to determine the project's license.
As a result, it does not seem possible to use the MIT license, or other templated licenses, in a way which satisfies both CRAN and Github.
Renaming my CRAN license template file from LICENCE
to LICENCE.template
would fix the issue, but then CRAN complains about a non-standard file.
I could omit a the CRAN license template file from the git repo, but then I'm not sacrificing version control for expediency.
Is there a workaround?
.Rbuildignore
to achieve CRAN compliance, but I'm loathe to use.gitignore
in the same way: it's nice to have everything version controlled. But it may be necessary. – Theodora