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