- using R Under development (unstable) (2026-09-19 r90568)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2)
GNU Fortran (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2)
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-09-20 13:45:04 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘crops/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘crops’ version ‘1.0.4’
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: 'fpop'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘crops’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [34s/39s] 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
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR