Skip to content
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

implemented document_date field #85

Merged
merged 2 commits into from Sep 10, 2020
Merged

Conversation

@ikashnitsky
Copy link
Contributor

@ikashnitsky ikashnitsky commented Sep 9, 2020

Started from scratch
in response to the recent discussion in #63

Discussion part
Maybe there should be a bit more consistency between date_subtitle and document_date. In my view their behaviour can be a bit confusing since both default to \today. I'd suggest to rename date_subtitle into subtitle or infoline – just drop date from default in this line. The date of the document can stay only in the footer – freely specified as text with the new document_date YAML param or resolving to \today by default. What do you think?

Started from scratch
re #63
@ikashnitsky
Copy link
Contributor Author

@ikashnitsky ikashnitsky commented Sep 9, 2020

For now I resorted to deleting the repo and forking it again ¯\_(ツ)_/¯

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Sep 9, 2020

I just had a very first quick glance at it and it looks good. One minor suggestion for the manual page which I type up later. For an example run, any odd document plus an explicit YAML header argument document_date and maybe date_subtitle ?

(As for changing names of existing options: not great. Published "APIs" for users and all that....)

@@ -35,21 +35,32 @@
#' suffix can be omitted; defaut is no bibliography.}
#' \item{\code{doi}}{(Optional but recommended) A free-format entry
#' suitable for a doi or url referencing the document or its
#' underlying code.} \item{\code{fontsize}}{(Optional) Document
#' underlying code.}
#' \item{\code{fontsize}}{(Optional) Document

This comment has been minimized.

@eddelbuettel

eddelbuettel Sep 9, 2020
Owner

Good catch on the missing line break.

R/pinp.R Outdated
#' fontsize, default is 9pt.}
#' \item{\code{footer_contents}}{(Optional) A free-format entry for
#' text placed in the footer, useful to associate with a package or
#' volume, default is \sQuote{Package Vignette}.}
#' \item{\code{date_subtitle}}{(Optional) An _optional_ free-form text string.

This comment has been minimized.

@eddelbuettel

eddelbuettel Sep 9, 2020
Owner

This irked me a little when I first glanced at his earlier. First off, it repeats 'optional' twice within three words. Second, we are old school here and do NOT use markdown.

So I just fixed this and will commit back into your repo and the PR in a moment.

Copy link
Owner

@eddelbuettel eddelbuettel left a comment

Generally good modulo the minor tweak I'll commit in a second.

R/pinp.R Outdated
#' Could be used, for example, to mention the bibliographic info in a
#' post-print. If not specified, defaults to "This version was compiled on
#' {current date}"}
#' \item{\code{document_date}}{(Optional) An _optional_ free-form text string

This comment has been minimized.

@eddelbuettel

eddelbuettel Sep 9, 2020
Owner

See previous comment.

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Sep 10, 2020

I will take silence from @coatless as absence of concerns and merge this :) Thanks for the new feature, being able to set both optionally is nice.

@eddelbuettel eddelbuettel merged commit b81f987 into eddelbuettel:master Sep 10, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@coatless
Copy link
Collaborator

@coatless coatless commented Sep 10, 2020

@eddelbuettel sorry, saw the earlier PR that was closed out. Missed this. That said, this looks good! Thanks @ikashnitsky!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.