R/distance-builds.R

# Verified identities; new builds require explicit arithmetic and near-tie validation.
.gseg_dist_builds <-
list(list(r = "R version 4.4.0 (2024-04-24)", platform = "x86_64-apple-darwin20", 
    stats_md5 = "ee9e8526b008db8a43386ad935791bf7", mode = "separate", 
    body_text = "{\n    if (!is.na(pmatch(method, \"euclidian\"))) \n        method <- \"euclidean\"\n    METHODS <- c(\"euclidean\", \"maximum\", \"manhattan\", \"canberra\", \"binary\", \"minkowski\")\n    method <- pmatch(method, METHODS)\n    if (is.na(method)) \n        stop(\"invalid distance method\")\n    if (method == -1) \n        stop(\"ambiguous distance method\")\n    x <- as.matrix(x)\n    N <- nrow(x)\n    attrs <- if (method == 6L) \n        list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], p = p, call = match.call(), class = \"dist\")\n    else list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], call = match.call(), class = \"dist\")\n    .Call(C_Cdist, x, method, attrs, p)\n}", 
    formals_text = "as.pairlist(alist(x = , method = \"euclidean\", diag = FALSE, upper = FALSE, p = 2))"), 
    list(r = "R version 4.3.1 (2023-06-16)", platform = "aarch64-apple-darwin20", 
        stats_md5 = "86e02bc8c4abb7bd3147a46b62df1e83", mode = "separate", 
        body_text = "{\n    if (!is.na(pmatch(method, \"euclidian\"))) \n        method <- \"euclidean\"\n    METHODS <- c(\"euclidean\", \"maximum\", \"manhattan\", \"canberra\", \"binary\", \"minkowski\")\n    method <- pmatch(method, METHODS)\n    if (is.na(method)) \n        stop(\"invalid distance method\")\n    if (method == -1) \n        stop(\"ambiguous distance method\")\n    x <- as.matrix(x)\n    N <- nrow(x)\n    attrs <- if (method == 6L) \n        list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], p = p, call = match.call(), class = \"dist\")\n    else list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], call = match.call(), class = \"dist\")\n    .Call(C_Cdist, x, method, attrs, p)\n}", 
        formals_text = "as.pairlist(alist(x = , method = \"euclidean\", diag = FALSE, upper = FALSE, p = 2))"), 
    list(r = "R version 4.4.0 (2024-04-24)", platform = "x86_64-pc-linux-gnu", 
        stats_md5 = "0438c86823d579e2ad8f33abbc0ce4fc", mode = "separate", 
        body_text = "{\n    if (!is.na(pmatch(method, \"euclidian\"))) \n        method <- \"euclidean\"\n    METHODS <- c(\"euclidean\", \"maximum\", \"manhattan\", \"canberra\", \"binary\", \"minkowski\")\n    method <- pmatch(method, METHODS)\n    if (is.na(method)) \n        stop(\"invalid distance method\")\n    if (method == -1) \n        stop(\"ambiguous distance method\")\n    x <- as.matrix(x)\n    N <- nrow(x)\n    attrs <- if (method == 6L) \n        list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], p = p, call = match.call(), class = \"dist\")\n    else list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], call = match.call(), class = \"dist\")\n    .Call(C_Cdist, x, method, attrs, p)\n}", 
        formals_text = "as.pairlist(alist(x = , method = \"euclidean\", diag = FALSE, upper = FALSE, p = 2))"), 
    list(r = "R version 4.5.2 (2025-10-31)", platform = "aarch64-unknown-linux-gnu", 
        stats_md5 = "c6f1034084095eb23a45b62d5462b3ce", mode = "fused", 
        body_text = "{\n    if (!is.na(pmatch(method, \"euclidian\"))) \n        method <- \"euclidean\"\n    METHODS <- c(\"euclidean\", \"maximum\", \"manhattan\", \"canberra\", \"binary\", \"minkowski\")\n    method <- pmatch(method, METHODS)\n    if (is.na(method)) \n        stop(\"invalid distance method\")\n    if (method == -1) \n        stop(\"ambiguous distance method\")\n    x <- as.matrix(x)\n    N <- nrow(x)\n    attrs <- if (method == 6L) \n        list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], p = p, call = match.call(), class = \"dist\")\n    else list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], call = match.call(), class = \"dist\")\n    .Call(C_Cdist, x, method, attrs, p)\n}", 
        formals_text = "as.pairlist(alist(x = , method = \"euclidean\", diag = FALSE, upper = FALSE, p = 2))"), 
    list(r = "R Under development (unstable) (2026-11-13 r90888)", 
        platform = "aarch64-unknown-linux-gnu", stats_md5 = "cfb05582f30eb49b0764270b1f4a29c3", 
        mode = "fused", body_text = "{\n    if (!is.na(pmatch(method, \"euclidian\"))) \n        method <- \"euclidean\"\n    METHODS <- c(\"euclidean\", \"maximum\", \"manhattan\", \"canberra\", \"binary\", \"minkowski\")\n    method <- pmatch(method, METHODS)\n    if (is.na(method)) \n        stop(\"invalid distance method\")\n    if (method == -1) \n        stop(\"ambiguous distance method\")\n    x <- as.matrix(x)\n    N <- nrow(x)\n    attrs <- if (method == 6L) \n        list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], p = p, call = match.call(), class = \"dist\")\n    else list(Size = N, Labels = dimnames(x)[[1L]], Diag = diag, Upper = upper, method = METHODS[method], call = match.call(), class = \"dist\")\n    .Call(C_Cdist, x, method, attrs, p)\n}", 
        formals_text = "as.pairlist(alist(x = , method = \"euclidean\", diag = FALSE, upper = FALSE, p = 2))"))

Try the gSeg package in your browser

Any scripts or data that you put into this service are public.

gSeg documentation built on Nov. 15, 2026, 5:06 p.m.