I have already updated this package in the latest version. For one of my data analysis project, I use the license function in the usethis message, I get this error.
Error: `use_ccby_license()` is designed to work with packages.
Project 'top-line-predictor' is not an R package.
Thus, I check the related issues on the Github. I find, most of the issues related to licenses are about package development instead of something project related.
Thus, Is there any consideration not to use the license function for a data analysis project?
I don't know too much about the license field. Just feel usethis is easy to use and friendly for beginners of R users.
Obvious disclaimer. I am very much not a lawyer. I can't comment on the pros/cons/consequences of putting a license on your project. If you have more questions on the topic, there are likely better places to ask. This link might be a good place to answer a couple of questions. Computer software is listed as a copyrightable work, but "methods" are not copyrightable. More to the spirit of open-source, I think making clear your expectations of what you wish to become of your work is a good idea.
More to the point of the error, I think you might lack a DESCRIPTION or a NAMESPACE file in the package folder. The three components of packages are:
For usethis to recognize your project as a package (and for you to be able to use functions such as use_ccby_license()) you only need a DESCRIPTION file, see
So if you run usethis::use_description() you should then be fine.
Like @EliMiller I can't comment on the legal aspect though, only this practical aspect.
Teaching materials and meetup presentations come to my mind...
When I was facing the same issue I ended up by creating the license.md file myself, with the text of CC-BY-4.0 license. GitHub recognized the text immediately.