Displaying 10 results from an estimated 10 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...
2025 Jan 16
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...te("WARNING: Added dependency on R >= 4.1.0 because",
+ "some of the source files use the new syntax",
+ "constructs.")
+ printLog(Log,
+ paste(c(strwrap(msg, indent = 2L, exdent = 2L),
+ format(uses410)),
+ collapse = "\n"),
+ "\n")
+ }
+ }
## add NAMESPACE if the author didn't write one
if(!file.exists(namespace <- file.path(pkgnam...
2025 Jan 16
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...ded dependency on R >= 4.1.0 because",
> + "some of the source files use the new syntax",
> + "constructs.")
> + printLog(Log,
> + paste(c(strwrap(msg, indent = 2L, exdent = 2L),
> + format(uses410)),
> + collapse = "\n"),
> + "\n")
> + }
> + }
>
> ## add NAMESPACE if the author didn't write one
>...
2025 Jan 17
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...n R >= 4.1.0 because",
>> + "some of the source files use the new syntax",
>> + "constructs.")
>> + printLog(Log,
>> + paste(c(strwrap(msg, indent = 2L, exdent = 2L),
>> + format(uses410)),
>> + collapse = "\n"),
>> + "\n")
>> + }
>> + }
>>
>> ## add NAMESPACE if the author didn't...
2025 Jan 19
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...because",
>>> + "some of the source files use the new syntax",
>>> + "constructs.")
>>> + printLog(Log,
>>> + paste(c(strwrap(msg, indent = 2L, exdent = 2L),
>>> + format(uses410)),
>>> + collapse = "\n"),
>>> + "\n")
>>> + }
>>> + }
>>>
>>> ## add NAMESPA...
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
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...gt;>>> + "some of the source files use the new syntax",
>>>> + "constructs.")
>>>> + printLog(Log,
>>>> + paste(c(strwrap(msg, indent = 2L, exdent = 2L),
>>>> + format(uses410)),
>>>> + collapse = "\n"),
>>>> + "\n")
>>>> + }
>>>> + }
>>>>
>...
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
..."some of the source files use the new
> syntax",
> >>>> + "constructs.")
> >>>> + printLog(Log,
> >>>> + paste(c(strwrap(msg, indent = 2L, exdent =
> 2L),
> >>>> + format(uses410)),
> >>>> + collapse = "\n"),
> >>>> + "\n")
> >>>> + }
> >>>> +...