Yes, The Queen is listed as an 'author' on our R packages
Just noticed the Queen is listed as an author in this (and probably other) R packages https://t.co/ehCb3uHjpx #rstats pic.twitter.com/KRKKQvlGX4
— David Smith (`@revodavid`) September 7, 2017
A 
number 
of 
people have been surprised to learn that Her Majesty the Queen is listed as an author on a number of our packages.
For example, in the 
SpaDES package:
Author:	Alex M Chubaty [aut, cre],
        Eliot J B McIntire [aut],
        Yong Luo [ctb],
        Steve Cumming [ctb],
        Her Majesty the Queen in Right of Canada, as represented by
         the Minister of Natural Resources Canada [cph]
Note, however, that Her Majesty’s 
role not as a package author (aut) but as the copyright holder (cph).
It’s common practice in many companies to attribute copyright to your employer, and there are several R packages that list a company as copyright holder.
For example, take a look at the packages produced by RStudio (e.g., 
dplyr, 
ggplot2).
As a Canadian public servant, the Crown holds copyright on our work, including R packages. (Next time you’re reading a scientific paper produced by a federal employee note the copyright – most publishers assign Crown Copyright in these cases instead of the publisher itself maintaining copyright. E.g., Elsevier.)
Queen Elizabeth II has another #rstats package on CRAN. This one's for reproducible research. https://t.co/T71aefEPTL
— Thomas Leeper (`@thosjleeper`) August 6, 2017
So while it may be a little surprising to see The Queen listed (as copyright holder) in the authors list for several R packages, assigning copyright to one’s employer is common in general, and expected for public servants in Canada (and likely other Commonwealth countries).