-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a devtools::release style submit_rjournal() for yesno questions
- Loading branch information
1 parent
fe9d475
commit ee40664
Showing
6 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#' Submit a paper to the R Journal | ||
#' | ||
#' This is a last-minute self-serve check function, similar to | ||
#' [devtools::release()], for handling R Journal styling that can be difficult | ||
#' with automatic checks. | ||
#' | ||
#' @export | ||
submit_rjournal <- function(){ | ||
|
||
if (!yesno( | ||
"Have you checked .bib file titles? They need to be: | ||
1) package name should be protected, i.e. {ggplot2} and always in lower case, | ||
2) the programming language R should be protected, i.e. {R}, and | ||
3) both sentence or title case are accepteable but need to be consistent")){ | ||
return(invisible()) | ||
} | ||
|
||
if (!yesno( | ||
"Have you include the automatic check results (with `initial_check_article`) | ||
in the motivation letter? Checks with WARNINGs and ERRORs need to be | ||
commented with reasons.")){ | ||
return(invisible()) | ||
} | ||
|
||
if (yesno("Ready to submit?")){ | ||
browseURL("https://docs.google.com/forms/d/e/1FAIpQLSeqtHH0g9JhrNEwT4ScqVAQe6Qq4om1-EfUqBe12YsPrrB6WQ/viewform") | ||
return(invisible()) | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.