CRAN Package Check Results for Package htsDegenerateR

Last updated on 2025-12-06 00:48:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 2.13 29.30 31.43 OK
r-devel-linux-x86_64-debian-gcc 0.1.0 1.74 15.37 17.11 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0 47.75 OK
r-devel-linux-x86_64-fedora-gcc 0.1.0 46.28 OK
r-devel-windows-x86_64 0.1.0 3.00 46.00 49.00 OK
r-patched-linux-x86_64 0.1.0 2.31 26.98 29.29 OK
r-release-linux-x86_64 0.1.0 2.19 28.63 30.82 OK
r-release-macos-arm64 0.1.0 OK
r-release-macos-x86_64 0.1.0 2.00 25.00 27.00 OK
r-release-windows-x86_64 0.1.0 3.00 46.00 49.00 OK
r-oldrel-macos-arm64 0.1.0 OK
r-oldrel-macos-x86_64 0.1.0 2.00 34.00 36.00 OK
r-oldrel-windows-x86_64 0.1.0 3.00 54.00 57.00 OK

Check Details

Version: 0.1.0
Check: examples
Result: ERROR Running examples in ‘htsDegenerateR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: MinT > ### Title: Using the method of Wickramasuriya et al. (2019), this function > ### (based on Hyndman et al.'s hts library) combines the forecasts at all > ### levels of a hierarchical time series and works for degenerate > ### hierarchies. > ### Aliases: MinT > > ### ** Examples > > # Set the seed for reproducibility > set.seed(123) > > # Create a sequence of 120 numbers > x <- seq(1, 120) > > # Generate the columns > AA <- sin(x*pi/6) + rnorm(120, 0, 1) # Sine component with random noise > AB <- 0.05*x + rnorm(120, 0, 0.5) # Linear component > B <- cos(x*pi/6)+ rnorm(120, 0, 1) # Cosine component > > # Combine the columns into a matrix > matrix <- cbind(AA, AB, B) > hts = ts(matrix, frequency = 12) > > # Define S matrix > S <- rbind(c(1,1,1), c(1,1,0), diag(1,3)) > rownames(S) <-c("Total", "A", "AA", "AB", "B") > colnames(S) <- c("AA", "AB", "B") > > # Aggregate hts on all levels > hts.complete <- ts(t(S %*% t(hts)), frequency = 12) > > # Fit a model to the time series > hts.models = lapply(hts.complete, function(c.ts) forecast::ets(c.ts)) Error in loadNamespace(x) : there is no package called ‘forecast’ Calls: lapply ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-debian-gcc