CRAN Package Check Results for Package trackter

Last updated on 2021-12-02 08:51:25 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.1 9.40 107.12 116.52 OK
r-devel-linux-x86_64-debian-gcc 0.1.1 7.76 78.50 86.26 OK
r-devel-linux-x86_64-fedora-clang 0.1.1 147.53 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.1 123.74 NOTE
r-devel-windows-x86_64-new-UL 0.1.1 22.00 156.00 178.00 OK
r-devel-windows-x86_64-new-TK 0.1.1 NOTE
r-devel-windows-x86_64-old 0.1.1 19.00 95.00 114.00 OK
r-patched-linux-x86_64 0.1.1 12.92 97.17 110.09 OK
r-patched-solaris-x86 0.1.1 172.60 ERROR
r-release-linux-x86_64 0.1.1 9.38 96.97 106.35 OK
r-release-macos-arm64 0.1.1 NOTE
r-release-macos-x86_64 0.1.1 NOTE
r-release-windows-ix86+x86_64 0.1.1 24.00 119.00 143.00 OK
r-oldrel-macos-x86_64 0.1.1 NOTE
r-oldrel-windows-ix86+x86_64 0.1.1 24.00 119.00 143.00 OK

Check Details

Version: 0.1.1
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘ggplot2’ ‘jpeg’ ‘pastecs’ ‘plyr’ ‘raster’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK, r-patched-solaris-x86, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.1.1
Check: examples
Result: ERROR
    Running examples in ‘trackter-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: kin.search
    > ### Title: Midline tracking over image sequences
    > ### Aliases: kin.search
    >
    > ### ** Examples
    >
    >
    > #### plot lot caudal amplitude and produce a classic midline waveform plot of swimming fish
    > ##A very long example.
    > ## Not run:
    > ##D
    > ##D
    > ##D #download example images and place in 'example' subdirectory
    > ##D f <- "https://github.com/ckenaley/exampledata/blob/master/example.zip?raw=true"
    > ##D
    > ##D download.file(f, paste0(tempdir(),"/temp.zip"))
    > ##D unzip(paste0(tempdir(),"/temp.zip"), exdir=tempdir())
    > ##D unlink(paste0(tempdir(),"/temp.zip"))
    > ##D
    > ##D dir.create(paste0(tempdir(),"/processed_images"))
    > ##D kin <- kin.search(image.dir =paste0(tempdir(),"/example"),
    > ##D search.for = "largest",
    > ##D smoothing = "loess",frames=1:50,
    > ##D out.dir=paste0(tempdir(),"/processed_images"),
    > ##D show.prog = FALSE,thr = "otsu",
    > ##D image.type="bin",smooth=0.4)
    > ##D
    > ##D #plot instantaneous amplitude of tail (last/rightmost point) over frames
    > ##D p <- ggplot(dat=kin$kin.dat,aes(x=frame,y=amp))+geom_line()+geom_point()+theme_classic(15)
    > ##D print(p)
    > ##D
    > ##D # midline plot
    > ##D ml <- kin$midline
    > ##D #leftmost x starts at 0
    > ##D ml <- ml[,x2:=x-x[1],by=frame]
    > ##D
    > ##D ml <- merge(ml,kin$kin.dat[,list(frame,amp)],by="frame") #merge these
    > ##D
    > ##D pal <- wes_palette("Zissou1", 100, type = "continuous") #"Zissou" color palette
    > ##D
    > ##D p <- ggplot(dat=ml,aes(x=x2,y=wave.y))+theme_classic(15)+scale_color_gradientn(colours = pal)
    > ##D p <- p+geom_line(aes(group=frame,color=amp),stat="smooth",method = "loess", size = 1.5)
    > ##D print(p)
    > ##D
    > ##D #Make a video of processed frames
    > ##D
    > ##D images.to.video2(image.dir=paste0(tempdir(),"/processed_images"),
    > ##D vid.name="trout_test",out.dir=tempdir(),frame.rate=5,qual=100,raw=FALSE)
    > ##D file.exists(paste0(tempdir(),"/trout_test_red.mp4"))
    > ##D
    > ## End(Not run)
    >
    > ## A very short example.
    >
    > #retrieve image
    > i <- EBImage::readImage(system.file("extdata/img", "sunfish_BCF.jpg", package = "trackter"))
    > #create directory and write image to it
    > t <- tempdir()
    >
    >
    > dir.create(paste0(t,"/images"))
    > EBImage::writeImage(i,paste0(t,"/images/sunfish001.jpg"),type = "jpeg")
    >
    > list.files(paste0(t,"/images"))
    [1] "sunfish001.jpg"
    > #run kin.search and save output image to directory
    > kin.i<- kin.search(image.dir = paste0(t,"/images"),smooth=0.7,save = TRUE,out.dir = t)
    Warning: `data_frame()` was deprecated in tibble 1.1.0.
    Please use `tibble()` instead.
    This warning is displayed once every 8 hours.
    Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
    Wrong JPEG library version: library is 62, caller expects 90
    >
    > #plot midline over original image
    > with(kin.i$midline,plot(x,wave.y))
    >
    > i2 <- EBImage::readImage(paste0(t,"/sunfish001_000.jpg"))
    Error in readJPEG(x, ...) : JPEG decompression error: Empty input file
    Calls: <Anonymous> -> .loadFun -> .readFun -> readJPEG
    Execution halted
Flavor: r-patched-solaris-x86