I am navigating licensing, and this is very confusing.
I produced a lot of R code to analyze data for a research article that will be published on a peer-reviewed journal.
Reading here License for R scripts, I can understand that I would need to pay attention to the license type of the packages I used before choosing a license for my code.
Now, I have a few issues as the R packages I used have all different types of licenses.
> packageDescription("ggplot2", fields="License")  "MIT + file LICENSE" > packageDescription("glmmTMB", fields="License")  "AGPL-3" > packageDescription("RColorBrewer", fields="License")  "Apache License 2.0"
The list is quite long and I also have
"GPL (>= 2.0)" and
So, I am now very confused on how should I license my code, as I am aware that not in all cases the different licenses are compatible with each other. For example, GPL v2 is not always compliant with GPL v3 and vice-versa.
Is there a way I can understand this and avoid of making mistakes?
Sadly I also have used packages with GPL V2.