Last updated on 2026-09-14 18:53:29 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.4 | 7.15 | 59.94 | 67.09 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.0.4 | 5.07 | 42.57 | 47.64 | OK | |
| r-devel-linux-x86_64-fedora-clang | 1.0.4 | 42.78 | ERROR | |||
| r-devel-linux-x86_64-fedora-gcc | 1.0.4 | 70.76 | ERROR | |||
| r-devel-windows-x86_64 | 1.0.4 | 10.00 | 76.00 | 86.00 | OK | |
| r-patched-linux-x86_64 | 1.0.4 | 7.82 | 56.45 | 64.27 | OK | |
| r-release-linux-x86_64 | 1.0.4 | 5.42 | 56.08 | 61.50 | OK | |
| r-release-macos-arm64 | 1.0.3 | 2.00 | 18.00 | 20.00 | OK | |
| r-release-macos-x86_64 | 1.0.4 | 5.00 | 57.00 | 62.00 | OK | |
| r-release-windows-x86_64 | 1.0.4 | 10.00 | 72.00 | 82.00 | OK | |
| r-oldrel-macos-arm64 | 1.0.4 | 2.00 | 21.00 | 23.00 | OK | |
| r-oldrel-macos-x86_64 | 1.0.4 | 5.00 | 59.00 | 64.00 | OK | |
| r-oldrel-windows-x86_64 | 1.0.4 | 13.00 | 94.00 | 107.00 | OK |
Version: 1.0.4
Check: examples
Result: ERROR
Running examples in ‘crops-Ex.R’ failed
The error most likely occurred in:
> ### Name: crops
> ### Title: Generic implementation of the crops algorithm (ref goes here).
> ### Aliases: crops
>
> ### ** Examples
>
> # generate some simple data
> set.seed(1)
> N <- 100
> data.vec <- c(rnorm(N), rnorm(N, 2), rnorm(N))
>
> # example one - calling fpop via crops using global scope
> # need the fpop library
> library(pacman)
> p_load(fpop)
Installing package into ‘/tmp/Rtmpj5ZLZx/RLIBS_2d3eb81c7fe4bc’
(as ‘lib’ is unspecified)
Warning: package ‘fpop’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Installing-packages
Warning: 'BiocManager' not available. Could not check Bioconductor.
Please use `install.packages('BiocManager')` and then retry.
Warning in p_install(package, character.only = TRUE, ...) :
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘fpop’
Warning in p_load(fpop) : Failed to install/load:
fpop
> # create a function to wrap a call to fpop for use with crops
> fpop.for.crops<-function(beta)
+ {
+ # Note - this code is taken from the example in the fpop package
+ fit <- Fpop(data.vec, beta)
+ end.vec <- fit$t.est
+ change.vec <- end.vec[-length(end.vec)]
+ start.vec <- c(1, change.vec+1)
+ segs.list <- list()
+ for(seg.i in seq_along(start.vec))
+ {
+ start <- start.vec[seg.i]
+ end <- end.vec[seg.i]
+ seg.data <- data.vec[start:end]
+ seg.mean <- mean(seg.data)
+ segs.list[[seg.i]] <- data.frame(
+ start, end,
+ mean=seg.mean,
+ seg.cost=sum((seg.data-seg.mean)^2))
+ }
+ segs <- do.call(rbind, segs.list)
+ return(list(sum(segs$seg.cost),segs$end[-length(segs$end)]))
+ }
>
> # now use this wrapper function with crops
> res<-crops(fpop.for.crops,0.5*log(300),2.5*log(300))
Error in Fpop(data.vec, beta) : could not find function "Fpop"
Calls: crops ... eval -> <Anonymous> -> freduce -> <Anonymous> -> method
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.4
Check: examples
Result: ERROR
Running examples in ‘crops-Ex.R’ failed
The error most likely occurred in:
> ### Name: crops
> ### Title: Generic implementation of the crops algorithm (ref goes here).
> ### Aliases: crops
>
> ### ** Examples
>
> # generate some simple data
> set.seed(1)
> N <- 100
> data.vec <- c(rnorm(N), rnorm(N, 2), rnorm(N))
>
> # example one - calling fpop via crops using global scope
> # need the fpop library
> library(pacman)
> p_load(fpop)
Installing package into ‘/data/localhost/ripley/R/packages/tests-devel/crops.Rcheck’
(as ‘lib’ is unspecified)
Warning: package ‘fpop’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Installing-packages
Warning in p_install(package, character.only = TRUE, ...) :
Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘fpop’
Warning in p_load(fpop) : Failed to install/load:
fpop
> # create a function to wrap a call to fpop for use with crops
> fpop.for.crops<-function(beta)
+ {
+ # Note - this code is taken from the example in the fpop package
+ fit <- Fpop(data.vec, beta)
+ end.vec <- fit$t.est
+ change.vec <- end.vec[-length(end.vec)]
+ start.vec <- c(1, change.vec+1)
+ segs.list <- list()
+ for(seg.i in seq_along(start.vec))
+ {
+ start <- start.vec[seg.i]
+ end <- end.vec[seg.i]
+ seg.data <- data.vec[start:end]
+ seg.mean <- mean(seg.data)
+ segs.list[[seg.i]] <- data.frame(
+ start, end,
+ mean=seg.mean,
+ seg.cost=sum((seg.data-seg.mean)^2))
+ }
+ segs <- do.call(rbind, segs.list)
+ return(list(sum(segs$seg.cost),segs$end[-length(segs$end)]))
+ }
>
> # now use this wrapper function with crops
> res<-crops(fpop.for.crops,0.5*log(300),2.5*log(300))
Error in Fpop(data.vec, beta) : could not find function "Fpop"
Calls: crops ... eval -> <Anonymous> -> freduce -> <Anonymous> -> method
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc