search for: exdent

Displaying 4 results from an estimated 4 matches for "exdent".

Did you mean: event
2012 Mar 15
1
how to assign "writeLines" function
hi, what I want to do is assigning following code to any object. k<-paste("thank") writeLines(strwrap(k, width = 80,indent = 7,exdent = 6)) To assign the "writeLines" code, I try this a<-writeLines(strwrap(k, width = 80,indent = 7,exdent = 6)) or assign(a,writeLines(strwrap(k, width = 80,indent = 7,exdent = 6))) but it doesn't work. is there any way to solve the problem? -- View this message in context...
2018 Sep 18
2
Suggested Patch: Adding commas to list of packages after R CMD check
...--- src/library/tools/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, .p...
2018 Sep 18
0
Suggested Patch: Adding commas to list of packages after R CMD check
...5322) > +++ 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) + nch...
2013 Aug 20
7
Extending suggestion for stopifnot
I am using a variant of stopifnot a lot. can I suggest that base R extends its functionality? I know how to do this for myself. this is a suggestion for beginners and students. I don't think it would break anything. first, I think it would be more useful if it had an optional character string, so users could write stopifnot( is.matrix(m), "m is not a matrix" ) this would