Displaying 3 results from an estimated 3 matches for "pretty_format2".
Did you mean:
pretty_format
2018 Sep 18
2
Suggested Patch: Adding commas to list of packages after R CMD check
...ools/R/QC.R (revision 75322)
+++ src/library/tools/R/QC.R (working copy)
@@ -8536,13 +8536,13 @@
.pretty_format <-
function(x)
{
- strwrap(paste(sQuote(x), collapse = " "),
+ strwrap(paste(sQuote(x), collapse = ", "),
indent = 2L, exdent = 2L)
}
.pretty_format2 <-
function(msg, x)
{
- xx <- strwrap(paste(sQuote(x), collapse = " "), exdent = 2L)
+ xx <- strwrap(paste(sQuote(x), collapse = ", "), exdent = 2L)
if (length(xx) > 1L || nchar(msg) + nchar(xx) + 1L > 75L)
c(msg, .pretty_format(x))
else...
2014 Jul 11
1
proposed change of check message when VIgnetteBuilder package is not declared as a dependency
...src/library/tools/R/QC.R
===================================================================
--- src/library/tools/R/QC.R (revision 66127)
+++ src/library/tools/R/QC.R (working copy)
@@ -3056,7 +3056,7 @@
if(length(bad <- x$required_for_checking_but_not_installed) > 1L) {
c(.pretty_format2("VignetteBuilder packages required for checking but not installed:", bad), "")
} else if(length(bad)) {
- c(sprintf("VignetteBuilder package required for checking but installed: %s", sQuote(bad)), "")
+ c(sprintf("Package %s must...
2018 Sep 18
0
Suggested Patch: Adding commas to list of packages after R CMD check
...ls/R/QC.R (working copy)
> @@ -8536,13 +8536,13 @@
> .pretty_format <-
> function(x)
> {
> - strwrap(paste(sQuote(x), collapse = " "),
> + strwrap(paste(sQuote(x), collapse = ", "),
> indent = 2L, exdent = 2L)
> }
> .pretty_format2 <-
> function(msg, x)
> {
> - xx <- strwrap(paste(sQuote(x), collapse = " "), exdent = 2L)
> + xx <- strwrap(paste(sQuote(x), collapse = ", "), exdent = 2L)
> if (length(xx) > 1L || nchar(msg) + nchar(xx) + 1L > 75L)
> c...