Last updated on 2025-03-31 09:53:55 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
gsubfn | 1 | 14 | |
nls2 | 15 | ||
sqldf | 12 | 3 |
Current CRAN status: ERROR: 1, OK: 14
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-clang
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-clang
Current CRAN status: OK: 15
Current CRAN status: NOTE: 12, OK: 3
Version: 0.4-11
Check: Rd files
Result: NOTE
checkRd: (-1) sqldf.Rd:248: Lost braces
248 | and code{port} arguments of sqldf.
| ^
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macos-arm64, r-devel-macos-x86_64, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64