-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add DOI to CITATION #773
Conversation
This should be |
So can the |
@szhorvat ouch, this is most unfortunate, sorry about that, and good to know! I tried different variations (spaces, backslashes) and positions of a line à la Maybe I should write out the names without any code, and instead add docs in the contributing guide of how to "register" an author? |
I'm not familiar with |
@maelle I'm sorry, I didn't see your response until now. It sounds like it's complicated. Just don't worry about it, it's fine as it is :-) |
Don't worry about it, just leave it as an "S" :-) |
@szhorvat @dieghernan kindly contributed a nearly perfect fix for the abbreviation! 🙏 maelle/wrongabbreviation#1 |
Yup, but only using base functions https://cran.r-project.org/doc/manuals/R-exts.html#CITATION-files
|
Thank you so much @dieghernan and @maelle, that's amazing that this could be made to work! |
really all I had to do was complain about inst/CITATION somewhere where @dieghernan was listening 😉 |
Thanks! |
@maelle: I'm seeing in https://win-builder.r-project.org/o164EoCgBrr7/00check.log :
Only for 1.4.99.9xxx, not for 1.4.2. Any idea? |
@krlmlr I was not able to reproduce on R-hub, because the build failed too early (at install). 🤔 |
|
||
txt <- gsub("Horvát S", "Horvát Sz", entry_for_txt) | ||
|
||
aut_new <- sub("Szabolcs", "{\\\\relax Sz}abolcs", authors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came back from CRAN:
Problems when formatting CITATION entries:
x:1: unexpected END_OF_INPUT '\relax'
Do we really need four backslashes here? Would "{Sz}abolcs"
work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, {Sz}
does not achieve the intended effect.
However, I feel that I already caused too much trouble by even bringing this up. If there's no easy solution, I don't want to stand in the way of removing this feature. What concerns me is that Maëlle already put a lot of work into making it work ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, no worries. We can try again with the next release. I now understand the four backslashes too.
Unfortunately, I can't replicate the error locally. It could require a specific locale.
Fix #711
The package whose citation I used as example is GPL-3 licenced https://github.com/cran/lidR/blob/f0dae39007c9d174f6e1962ff236fd8826f1501d/DESCRIPTION#L22
Created on 2023-04-11 with reprex v2.0.2
How it looks on the authors page