Closed jimhester closed 5 years ago
Can I parse any field that is postfixed with @R
using parse(text = field)
?
Maybe consider using desc to handle the DESCRIPTION parsing in spelling? It has code to handle Authors@R
already, and also handles the encoding and other issues.
I think Authors@R
is just special case in base R, there is no arbitrary support for '@R' suffixes.
Read your comment too late, I've already implemented it myself now. I think eval(parse())
works fine in this case, because we're only using the author field to add it to the ignore list.
https://github.com/ropensci/spelling/blob/7f5e3f6904508ea42d61e7f3c0af2d866e7e5517/R/spell-check.R#L33
will return the
author@R
term ifauthor
does not exist due to partial matching of$
. This should be changed topkg[["author"]]
and additional code added to parse theauthor@R
separately.