Last updated on 2025-03-28 05:52:13 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.7 | 2.46 | 30.91 | 33.37 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.7 | 1.65 | 19.70 | 21.35 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.7 | 54.17 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.7 | 65.58 | OK | |||
r-devel-macos-arm64 | 0.7 | 30.00 | OK | |||
r-devel-macos-x86_64 | 0.7 | 62.00 | OK | |||
r-devel-windows-x86_64 | 0.7 | 4.00 | 66.00 | 70.00 | OK | |
r-patched-linux-x86_64 | 0.7 | 2.56 | 30.04 | 32.60 | OK | |
r-release-linux-x86_64 | 0.7 | 2.16 | 29.80 | 31.96 | OK | |
r-release-macos-arm64 | 0.7 | 34.00 | OK | |||
r-release-macos-x86_64 | 0.7 | 44.00 | OK | |||
r-release-windows-x86_64 | 0.7 | 6.00 | 70.00 | 76.00 | OK | |
r-oldrel-macos-arm64 | 0.7 | OK | ||||
r-oldrel-macos-x86_64 | 0.7 | 46.00 | OK | |||
r-oldrel-windows-x86_64 | 0.7 | 5.00 | 68.00 | 73.00 | OK |
Version: 0.7
Check: examples
Result: ERROR
Running examples in ‘gsubfn-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: strapply
> ### Title: Apply a function over a string or strings.
> ### Aliases: strapply strapply1 ostrapply strapplyc tclList2R
> ### Keywords: character
>
> ### ** Examples
>
>
> strapply("12;34:56,89,,12", "[0-9]+")
[[1]]
[1] "12" "34" "56" "89" "12"
>
> # separate leading digits from rest of string
> # creating a 2 column matrix: digits, rest
> s <- c("123abc", "12cd34", "1e23")
> t(strapply(s, "^([[:digit:]]+)(.*)", c, simplify = TRUE))
[,1] [,2]
[1,] "123" "abc"
[2,] "12" "cd34"
[3,] "1" "e23"
>
> # same but create matrix
> strapply(s, "^([[:digit:]]+)(.*)", c, simplify = rbind)
[,1] [,2]
[1,] "123" "abc"
[2,] "12" "cd34"
[3,] "1" "e23"
>
> # running window of 5 characters using 0-lookahead perl regexp
> # Note that the three ( in the regexp will fool it into thinking there
> # are three backreferences so specify backref explicitly.
> x <- "abcdefghijkl"
> strapply(x, "(.)(?=(....))", paste0, backref = -2, perl = TRUE)[[1]]
[1] "abcde" "bcdef" "cdefg" "defgh" "efghi" "fghij" "ghijk" "hijkl"
>
> # Note difference. First gives character vector. Second is the same.
> # Third has same elements but is a list.
> # Fourth gives list of two character vectors. Fifth is the same.
> strapply("a:b c:d", "(.):(.)", c)[[1]]
[1] "a" "b" "c" "d"
> strapply("a:b c:d", "(.):(.)", list, simplify = unlist) # same
[1] "a" "b" "c" "d"
>
> strapply("a:b c:d", "(.):(.)", list)[[1]]
[[1]]
[1] "a"
[[2]]
[1] "b"
[[3]]
[1] "c"
[[4]]
[1] "d"
>
> strapply("a:b c:d", "(.):(.)", c, combine = list)[[1]]
[[1]]
[1] "a" "b"
[[2]]
[1] "c" "d"
> strapply("a:b c:d", "(.):(.)", c, combine = list, simplify = c) # same
[[1]]
[1] "a" "b"
[[2]]
[1] "c" "d"
>
> # find second CPU_SPEED value given lines of config file
> Lines <- c("DEVICE = 'PC'", "CPU_SPEED = '1999', '233'")
> parms <- strapply(Lines, "[^ ',=]+", c, USE.NAMES = TRUE,
+ simplify = ~ lapply(list(...), "[", -1))
> parms$CPU_SPEED[2]
[1] "233"
>
> # return first two words in each string
> p <- proto(fun = function(this, x) if (count <=2) x)
> strapply(c("the brown fox", "the eager beaver"), "\\w+", p)
Error in environment(value) <- this : cannot set attribute on a 'builtin'
Calls: strapply -> ostrapply -> $<- -> $<-.proto
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.7
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘gsubfn.Rnw’ using Sweave
Loading required package: proto
Error: processing vignette 'gsubfn.Rnw' failed with diagnostics:
chunk 9 (label = gsubfn-strapply-words)
Error in environment(value) <- this : cannot set attribute on a 'builtin'
--- failed re-building ‘gsubfn.Rnw’
SUMMARY: processing the following file failed:
‘gsubfn.Rnw’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
mirror server hosted at Truenetwork, Russian Federation.