diff --git a/.Rbuildignore b/.Rbuildignore index aa7059a3b2102a246821ef37d6ddd1d831deb5f0..98316ccfd13a0286857a3ce70b87bc08517f8cb6 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -9,7 +9,7 @@ ^inst/doc$ ^\.gitlab-ci\.yml$ ## unit tests should be ignored when building the package for CRAN -^tests$ +#^tests$ ^inst/PlotProfiling\.R$ ^.gitlab$ # Suggested by http://r-pkgs.had.co.nz/package.html diff --git a/R/Compute.R b/R/Compute.R index 5a58abd9467bf91c1cea057d13b1bbada0afc1ba..5fe4b734c44bd3b4464afa8593fe6c971519cf90 100644 --- a/R/Compute.R +++ b/R/Compute.R @@ -155,6 +155,12 @@ Compute <- function(workflow, chunks = 'auto', workflow_manager = 'ecFlow', stop("Workflows with only one step supported by now.") } + if (any(names(chunks) == attr(workflow$inputs$input1, "PatternDim"))) { + stop(paste0("Chunking along the pattern dimension ", + attr(workflow$inputs$input1, "PatternDim"), + " is not allowed for now.")) + } + # Run ByChunks with the chosen operation if (!is.null(cluster)) { if (is.null(workflow_manager)) {