Skip to content

[R-pkg-devel] CITATION problem

4 messages · Michael Chirico, Kenny, Christopher, Spencer Graves

#
Hello, All:


I'm getting "Warning: Invalid citation information in ?inst/CITATION?: 
Error in parse(con): 4:30: unexpected INCOMPLETE_STRING
   11: )
   12:
                                    ^"[1]


with my new package " sbgraves237/SS4Maddison" on GitHub.[2]


I may be foolish to bother with this, but a CITATION file is suggested 
in Section 8.2 of Wickham and Bryan, R Packages, and I'm dutifully 
trying to do what they suggest.


What am I doing wrong?


Thanks, Spencer Graves


[1] This Warning appears in GitHub actions for this package, e.g.:


https://github.com/sbgraves237/SS4Maddison/actions/runs/17565658799/job/49891987005


[2] GitHub sbgraves237/SSMaddison:


https://github.com/sbgraves237/SS4Maddison
#
Hi Spencer, you have a doubled " here:

https://github.com/sbgraves237/SS4Maddison/blob/f4daa00d20af5172fb183e8cea7d57ed0a09dc4d/inst/CITATION#L4

You can try to run parse("inst/CITATION") on the file locally

Mike C

On Mon, Sep 8, 2025 at 4:42?PM Spencer Graves <
spencer.graves at effectivedefense.org> wrote:

            

  
  
#
The error is pointing you to 4:30, which is line 4 character 30. If you look at that, you have typed "" instead of ". As such, you have a new string opened which is never closed.

Chris
#
Thanks to Christopher Kenny and Michael Chirico for helping me get past 
this problem ... AND for helping me understand how to read error 
messages like this and check with 'parse("inst/CITATION")'.


Spencer Graves
On 9/8/25 18:53, Kenny, Christopher wrote: