Skip to content

Commit e895a83

Browse files
committed
cleanup
1 parent 648c77e commit e895a83

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

R/options.R

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -297,21 +297,16 @@ parsePreloadDataFromDescriptionQml <- function(analysisName) {
297297

298298
description <- parseDescriptionQmlFromAnalysisName(analysisName)
299299

300-
# is the preloadData globally set to TRUE?
300+
# is preloadData globally set to TRUE?
301301
preloadDataGlobal <- isTRUE(description[["Description"]][["preloadData"]])
302-
# is the preloadData even set for this specific analysis?
302+
# is preloadData even set for this specific analysis?
303303
specifiedPreloadData <- "preloadData" %in% names(description[[analysisName]])
304-
# is the preloadData set to TRUE for this specific analysis?
304+
# is preloadData set to TRUE for this specific analysis?
305305
preloadDataAnalysis <- specifiedPreloadData && isTRUE(description[[analysisName]][["preloadData"]])
306-
# preloadData if set to TRUE for the analysis or if set globally to TRUE and not set for the analysis
306+
# if preloadData set to TRUE for the analysis, or if set globally to TRUE and not set for the analysis
307307
preloadData <- preloadDataAnalysis || (preloadDataGlobal && !specifiedPreloadData)
308308

309-
# global analysis -> result warning
310-
# preloadData TRUE TRUE -> TRUE
311-
# TRUE FALSE -> FALSE
312-
# FALSE TRUE -> TRUE
313-
# FALSE FALSE -> FALSE
314-
309+
# show a warning but only if the preloadData is not set for the analysis
315310
if (!preloadData && !specifiedPreloadData)
316311
lifecycle::deprecate_warn(
317312
when = "0.19.2",

0 commit comments

Comments
 (0)