So, I'm creating a script to extend the functionality of devtools::create()
and I'm noticing some slightly odd behavior when I double check things with utils::maintainer
. Here's a MWE where I set the Authors@R
section of the description file through the devtools.desc.author
option:
options(devtools.desc.license = "AGPL-3")
options(devtools.desc.author = "'Joe Dirt <joe@durt.ee> [aut, cre]'")
descArgs <- list(Package = "testPkg",
Title = "testPkg",
Description = "some desc.")
options(devtools.desc = descArgs)
devtools::create(path = "testPkg", check = TRUE)
Now, if you go ahead and run devtools::install("testPkg", quiet=TRUE)
, and then maintainer("testPkg")
you get
> maintainer("testPkg")
[1] "'Joe Dirt' <joe@durt.ee>"
So my question is: why is the maintainer's name quoted, here?