R is *not* public domain. It is open source, under the GPL, etc.