CRAN Package Check Results for Package EpiNow2

Last updated on 2021-09-24 22:52:52 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.3.2 990.45 205.32 1195.77 NOTE
r-devel-linux-x86_64-debian-gcc 1.3.2 825.70 194.80 1020.50 NOTE
r-devel-linux-x86_64-fedora-clang 1.3.2 1757.98 NOTE
r-devel-linux-x86_64-fedora-gcc 1.3.2 1919.27 ERROR
r-devel-windows-x86_64 1.3.2 795.00 409.00 1204.00 NOTE
r-devel-windows-x86_64-gcc10-UCRT 1.3.2 NOTE
r-patched-linux-x86_64 1.3.2 896.92 241.69 1138.61 NOTE
r-patched-solaris-x86 1.3.2 1464.50 NOTE
r-release-linux-x86_64 1.3.2 786.25 246.24 1032.49 NOTE
r-release-macos-arm64 1.3.2 NOTE
r-release-macos-x86_64 1.3.2 NOTE
r-release-windows-ix86+x86_64 1.3.2 2154.00 456.00 2610.00 NOTE
r-oldrel-macos-x86_64 1.3.2 NOTE
r-oldrel-windows-ix86+x86_64 1.3.2 1544.00 351.00 1895.00 NOTE

Check Details

Version: 1.3.2
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'EpiSoon'
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-windows-x86_64, r-devel-windows-x86_64-gcc10-UCRT, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.3.2
Check: installed package size
Result: NOTE
     installed size is 119.4Mb
     sub-directories of 1Mb or more:
     libs 117.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-patched-solaris-x86, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.3.2
Check: examples
Result: ERROR
    Running examples in ‘EpiNow2-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: estimate_truncation
    > ### Title: Estimate Truncation of Observed Data
    > ### Aliases: estimate_truncation
    >
    > ### ** Examples
    >
    > #set number of cores to use
    > options(mc.cores = ifelse(interactive(), 4, 1))
    > # get example case counts
    > reported_cases <- example_confirmed[1:60]
    >
    > # define example truncation distribution (note not integer adjusted)
    > trunc_dist <- list(mean = convert_to_logmean(3, 2),
    + mean_sd = 0.1,
    + sd = convert_to_logsd(3, 2),
    + sd_sd = 0.1,
    + max = 10)
    >
    > # apply truncation to example data
    > construct_truncation <- function(index, cases, dist) {
    + set.seed(index)
    + cmf <- cumsum(
    + dlnorm(1:(dist$max + 1),
    + rnorm(1, dist$mean, dist$mean_sd),
    + rnorm(1, dist$sd, dist$sd_sd)))
    + cmf <- cmf / cmf[dist$max + 1]
    + cmf <- rev(cmf)[-1]
    + trunc_cases <- data.table::copy(cases)[1:(.N - index)]
    + trunc_cases[(.N - length(cmf) + 1):.N, confirm := as.integer(confirm * cmf)]
    + return(trunc_cases)
    + }
    > example_data <- purrr::map(c(20, 15, 10, 0),
    + construct_truncation,
    + cases = reported_cases,
    + dist = trunc_dist)
    >
    > # fit model to example data
    > est <- estimate_truncation(example_data, verbose = interactive(),
    + chains = 2, iter = 2000)
    Error in merge.data.table(out, elt, ...) :
     A non-empty vector of column names for `by` is required.
    Calls: estimate_truncation ... <Anonymous> -> reduce_impl -> fn -> merge.data.table
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc