scripts/run.py
def is_rdemo(file_name):
    """
    Return True if file_name matches a regexp for an R demo.  False otherwise.
    :param file_name: file to test
    """
    packaged_demos = ["h2o.anomaly.R", "h2o.deeplearning.R", "h2o.gbm.R", "h2o.glm.R", "h2o.glrm.R", "h2o.kmeans.R",
                      "h2o.naiveBayes.R", "h2o.prcomp.R", "h2o.randomForest.R"]
    if file_name in packaged_demos: return True
    if re.match("^rdemo.*\.(r|R|ipynb)$", file_name): return True
    return False
def is_rdemo(file_name):
    """
    Return True if file_name matches a regexp for an R demo.  False otherwise.
    :param file_name: file to test
    """
    packaged_demos = ["h2o.anomaly.R", "h2o.deeplearning.R", "h2o.gbm.R", "h2o.glm.R", "h2o.glrm.R", "h2o.kmeans.R",
                      "h2o.naiveBayes.R", "h2o.prcomp.R", "h2o.randomForest.R"]
    if file_name in packaged_demos: return True
    if re.match("^rdemo.*\.(r|R|ipynb)$", file_name): return True
    return False
Return True if file_name matches a regexp for an R demo.  False otherwise.
    :param file_name: file to test