From ef06e52e086557f0cfd058f63a6e5db454591b0c Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 10 Sep 2024 09:44:28 -0400 Subject: [PATCH] do not restrict apps that contain shinycoreci in their apps --- inst/gha/validate-test-files.R | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/inst/gha/validate-test-files.R b/inst/gha/validate-test-files.R index 300f5c9d9d..1b3502a06a 100644 --- a/inst/gha/validate-test-files.R +++ b/inst/gha/validate-test-files.R @@ -68,20 +68,20 @@ for (app_path in list.dirs("inst/apps", recursive = FALSE)) { } } - # Make sure shinycoreci is not used within an app - for (file in dir(app_path, recursive = TRUE, full.names = TRUE, pattern = "\\.(R|Rmd)$")) { - # Ignore first 000 apps - if (grepl("^inst/apps/000-", file)) next + # # Make sure shinycoreci is not used within an app + # for (file in dir(app_path, recursive = TRUE, full.names = TRUE, pattern = "\\.(R|Rmd)$")) { + # # Ignore first 000 apps + # if (grepl("^inst/apps/000-", file)) next - file_lines <- readLines(file) - if (any(grepl("shinycoreci)", file_lines, fixed = TRUE))) { - stop("File `", file, "` contains library() or require() call to {shinycoreci}. Remove usage of {shinycoreci}.") - } - file_lines <- gsub("shinycoreci::::", "shinycoreci____", file_lines) - if (any(grepl("shinycoreci::", file_lines, fixed = TRUE))) { - stop("File `", file, "` contains usage of {shinycoreci}. Replace this code.") - } - } + # file_lines <- readLines(file) + # if (any(grepl("shinycoreci)", file_lines, fixed = TRUE))) { + # stop("File `", file, "` contains library() or require() call to {shinycoreci}. Remove usage of {shinycoreci}.") + # } + # file_lines <- gsub("shinycoreci::::", "shinycoreci____", file_lines) + # if (any(grepl("shinycoreci::", file_lines, fixed = TRUE))) { + # stop("File `", file, "` contains usage of {shinycoreci}. Replace this code.") + # } + # } }, error = function(e) { errors_found[[length(errors_found) + 1]] <<- e })