A relevant book on this important (and evolving) topic is Math You Can't Use: Patents, Copyright, and Software by Ben Klemens (2006)
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.