diff --git a/R/Start.R b/R/Start.R index 2be297b1cf0df03679544b751ef45ca2b6eabc30..7479bbd03ab57eabae35f370fe7a486395f3d095 100644 --- a/R/Start.R +++ b/R/Start.R @@ -893,6 +893,12 @@ Start <- function(..., # dim = indices/selectors, found_pattern_dim <- found_pattern_dims(pattern_dims, dim_names, var_params, dim_params, dim_reorder_params) + # Check if file pattern contains '$var$' substring + if (!grepl("$var$", dim_params[[found_pattern_dim]], fixed = TRUE)) { + .warning(paste0("The special wildcard '$var$' is not present in the file ", + "path. This might cause the function to fail if it can not", + "parse the inner dimensions in all the files.")) + } # Check all *_reorder are NULL or functions, and that they all have # a matching dimension param. i <- 1