| docopt, | docopt, | ||||
| duckdb, | duckdb, | ||||
| fastLink, | fastLink, | ||||
| gt, | |||||
| here, | here, | ||||
| lgr, | lgr, | ||||
| RSQLite, | |||||
| snakecase, | |||||
| tidygeocoder, | |||||
| tidyr, | tidyr, | ||||
| visNetwork | visNetwork |
| "Packages": { | "Packages": { | ||||
| "DBI": { | "DBI": { | ||||
| "Package": "DBI", | "Package": "DBI", | ||||
| "Version": "1.1.3", | |||||
| "Version": "1.2.2", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "methods" | "methods" | ||||
| ], | ], | ||||
| "Hash": "b2866e62bab9378c3cc9476a1954226b" | |||||
| "Hash": "164809cd72e1d5160b4cb3aa57f510fe" | |||||
| }, | }, | ||||
| "MASS": { | "MASS": { | ||||
| "Package": "MASS", | "Package": "MASS", | ||||
| ], | ], | ||||
| "Hash": "45f0398006e83a5b10b72a90663d8d8c" | "Hash": "45f0398006e83a5b10b72a90663d8d8c" | ||||
| }, | }, | ||||
| "RSQLite": { | |||||
| "Package": "RSQLite", | |||||
| "Version": "2.3.5", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "DBI", | |||||
| "R", | |||||
| "bit64", | |||||
| "blob", | |||||
| "cpp11", | |||||
| "memoise", | |||||
| "methods", | |||||
| "pkgconfig", | |||||
| "plogr", | |||||
| "rlang" | |||||
| ], | |||||
| "Hash": "f5a75d57e0a3014a6ef537ac04a80fc6" | |||||
| }, | |||||
| "Rcpp": { | "Rcpp": { | ||||
| "Package": "Rcpp", | "Package": "Rcpp", | ||||
| "Version": "1.0.11", | "Version": "1.0.11", | ||||
| ], | ], | ||||
| "Hash": "acb0a5bf38490f26ab8661b467f4f53a" | "Hash": "acb0a5bf38490f26ab8661b467f4f53a" | ||||
| }, | }, | ||||
| "V8": { | |||||
| "Package": "V8", | |||||
| "Version": "4.4.2", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "Rcpp", | |||||
| "curl", | |||||
| "jsonlite", | |||||
| "utils" | |||||
| ], | |||||
| "Hash": "ca98390ad1cef2a5a609597b49d3d042" | |||||
| }, | |||||
| "adagio": { | "adagio": { | ||||
| "Package": "adagio", | "Package": "adagio", | ||||
| "Version": "0.9.2", | "Version": "0.9.2", | ||||
| ], | ], | ||||
| "Hash": "0c54cf3a08cc0e550fbd64ad33166143" | "Hash": "0c54cf3a08cc0e550fbd64ad33166143" | ||||
| }, | }, | ||||
| "bigD": { | |||||
| "Package": "bigD", | |||||
| "Version": "0.2.0", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R" | |||||
| ], | |||||
| "Hash": "93637e906f3fe962413912c956eb44db" | |||||
| }, | |||||
| "bit": { | "bit": { | ||||
| "Package": "bit", | "Package": "bit", | ||||
| "Version": "4.0.5", | "Version": "4.0.5", | ||||
| ], | ], | ||||
| "Hash": "9fe98599ca456d6552421db0d6772d8f" | "Hash": "9fe98599ca456d6552421db0d6772d8f" | ||||
| }, | }, | ||||
| "bitops": { | |||||
| "Package": "bitops", | |||||
| "Version": "1.0-7", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Hash": "b7d8d8ee39869c18d8846a184dd8a1af" | |||||
| }, | |||||
| "blob": { | "blob": { | ||||
| "Package": "blob", | "Package": "blob", | ||||
| "Version": "1.2.4", | "Version": "1.2.4", | ||||
| }, | }, | ||||
| "cli": { | "cli": { | ||||
| "Package": "cli", | "Package": "cli", | ||||
| "Version": "3.6.1", | |||||
| "Version": "3.6.2", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "utils" | "utils" | ||||
| ], | ], | ||||
| "Hash": "89e6d8219950eac806ae0c489052048a" | |||||
| "Hash": "1216ac65ac55ec0058a6f75d7ca0fd52" | |||||
| }, | }, | ||||
| "clipr": { | "clipr": { | ||||
| "Package": "clipr", | "Package": "clipr", | ||||
| ], | ], | ||||
| "Hash": "f20c47fd52fae58b4e377c37bb8c335b" | "Hash": "f20c47fd52fae58b4e377c37bb8c335b" | ||||
| }, | }, | ||||
| "commonmark": { | |||||
| "Package": "commonmark", | |||||
| "Version": "1.9.1", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Hash": "5d8225445acb167abf7797de48b2ee3c" | |||||
| }, | |||||
| "cpp11": { | "cpp11": { | ||||
| "Package": "cpp11", | "Package": "cpp11", | ||||
| "Version": "0.4.6", | "Version": "0.4.6", | ||||
| }, | }, | ||||
| "desc": { | "desc": { | ||||
| "Package": "desc", | "Package": "desc", | ||||
| "Version": "1.4.2", | |||||
| "Version": "1.4.3", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "R6", | "R6", | ||||
| "cli", | "cli", | ||||
| "rprojroot", | |||||
| "utils" | "utils" | ||||
| ], | ], | ||||
| "Hash": "6b9602c7ebbe87101a9c8edb6e8b6d21" | |||||
| "Hash": "99b79fcbd6c4d1ce087f5c5c758b384f" | |||||
| }, | }, | ||||
| "digest": { | "digest": { | ||||
| "Package": "digest", | "Package": "digest", | ||||
| }, | }, | ||||
| "dplyr": { | "dplyr": { | ||||
| "Package": "dplyr", | "Package": "dplyr", | ||||
| "Version": "1.1.3", | |||||
| "Version": "1.1.4", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "R6", | "R6", | ||||
| "utils", | "utils", | ||||
| "vctrs" | "vctrs" | ||||
| ], | ], | ||||
| "Hash": "e85ffbebaad5f70e1a2e2ef4302b4949" | |||||
| "Hash": "fedd9d00c2944ff00a0e2696ccf048ec" | |||||
| }, | }, | ||||
| "duckdb": { | "duckdb": { | ||||
| "Package": "duckdb", | "Package": "duckdb", | ||||
| }, | }, | ||||
| "glue": { | "glue": { | ||||
| "Package": "glue", | "Package": "glue", | ||||
| "Version": "1.6.2", | |||||
| "Version": "1.7.0", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "methods" | "methods" | ||||
| ], | ], | ||||
| "Hash": "4f2596dfb05dac67b9dc558e5c6fba2e" | |||||
| "Hash": "e0b3a53876554bd45879e596cdb10a52" | |||||
| }, | }, | ||||
| "graphlayouts": { | "graphlayouts": { | ||||
| "Package": "graphlayouts", | "Package": "graphlayouts", | ||||
| ], | ], | ||||
| "Hash": "7d7f283939f563670a697165b2cf5560" | "Hash": "7d7f283939f563670a697165b2cf5560" | ||||
| }, | }, | ||||
| "gt": { | |||||
| "Package": "gt", | |||||
| "Version": "0.10.1", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "base64enc", | |||||
| "bigD", | |||||
| "bitops", | |||||
| "cli", | |||||
| "commonmark", | |||||
| "dplyr", | |||||
| "fs", | |||||
| "glue", | |||||
| "htmltools", | |||||
| "htmlwidgets", | |||||
| "juicyjuice", | |||||
| "magrittr", | |||||
| "markdown", | |||||
| "reactable", | |||||
| "rlang", | |||||
| "sass", | |||||
| "scales", | |||||
| "tidyselect", | |||||
| "vctrs", | |||||
| "xml2" | |||||
| ], | |||||
| "Hash": "03009c105dfae79460b8eb9d8cf791e4" | |||||
| }, | |||||
| "gtable": { | "gtable": { | ||||
| "Package": "gtable", | "Package": "gtable", | ||||
| "Version": "0.3.4", | "Version": "0.3.4", | ||||
| ], | ], | ||||
| "Hash": "a865aa85bcb2697f47505bfd70422471" | "Hash": "a865aa85bcb2697f47505bfd70422471" | ||||
| }, | }, | ||||
| "httr": { | |||||
| "Package": "httr", | |||||
| "Version": "1.4.7", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "R6", | |||||
| "curl", | |||||
| "jsonlite", | |||||
| "mime", | |||||
| "openssl" | |||||
| ], | |||||
| "Hash": "ac107251d9d9fd72f0ca8049988f1d7f" | |||||
| }, | |||||
| "httr2": { | "httr2": { | ||||
| "Package": "httr2", | "Package": "httr2", | ||||
| "Version": "0.2.3", | |||||
| "Version": "1.0.0", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "R6", | "R6", | ||||
| "cli", | "cli", | ||||
| "curl", | "curl", | ||||
| "glue", | "glue", | ||||
| "lifecycle", | |||||
| "magrittr", | "magrittr", | ||||
| "openssl", | "openssl", | ||||
| "rappdirs", | "rappdirs", | ||||
| "rlang", | "rlang", | ||||
| "vctrs", | |||||
| "withr" | "withr" | ||||
| ], | ], | ||||
| "Hash": "193bb297368afbbb42dc85784a46b36e" | |||||
| "Hash": "e2b30f1fc039a0bab047dd52bb20ef71" | |||||
| }, | }, | ||||
| "igraph": { | "igraph": { | ||||
| "Package": "igraph", | "Package": "igraph", | ||||
| ], | ], | ||||
| "Hash": "e1b9c55281c5adc4dd113652d9e26768" | "Hash": "e1b9c55281c5adc4dd113652d9e26768" | ||||
| }, | }, | ||||
| "juicyjuice": { | |||||
| "Package": "juicyjuice", | |||||
| "Version": "0.1.0", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "V8" | |||||
| ], | |||||
| "Hash": "3bcd11943da509341838da9399e18bce" | |||||
| }, | |||||
| "knitr": { | "knitr": { | ||||
| "Package": "knitr", | "Package": "knitr", | ||||
| "Version": "1.45", | "Version": "1.45", | ||||
| ], | ], | ||||
| "Hash": "7ce2733a9826b3aeb1775d56fd305472" | "Hash": "7ce2733a9826b3aeb1775d56fd305472" | ||||
| }, | }, | ||||
| "markdown": { | |||||
| "Package": "markdown", | |||||
| "Version": "1.12", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "commonmark", | |||||
| "utils", | |||||
| "xfun" | |||||
| ], | |||||
| "Hash": "765cf53992401b3b6c297b69e1edb8bd" | |||||
| }, | |||||
| "memoise": { | "memoise": { | ||||
| "Package": "memoise", | "Package": "memoise", | ||||
| "Version": "2.0.1", | "Version": "2.0.1", | ||||
| ], | ], | ||||
| "Hash": "01f28d4278f15c76cddbea05899c5d6f" | "Hash": "01f28d4278f15c76cddbea05899c5d6f" | ||||
| }, | }, | ||||
| "plogr": { | |||||
| "Package": "plogr", | |||||
| "Version": "0.2.0", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Hash": "09eb987710984fc2905c7129c7d85e65" | |||||
| }, | |||||
| "plotrix": { | "plotrix": { | ||||
| "Package": "plotrix", | "Package": "plotrix", | ||||
| "Version": "3.8-4", | "Version": "3.8-4", | ||||
| ], | ], | ||||
| "Hash": "5e3c5dc0b071b21fa128676560dbe94d" | "Hash": "5e3c5dc0b071b21fa128676560dbe94d" | ||||
| }, | }, | ||||
| "reactR": { | |||||
| "Package": "reactR", | |||||
| "Version": "0.5.0", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "htmltools" | |||||
| ], | |||||
| "Hash": "c9014fd1a435b2d790dd506589cb24e5" | |||||
| }, | |||||
| "reactable": { | |||||
| "Package": "reactable", | |||||
| "Version": "0.4.4", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "digest", | |||||
| "htmltools", | |||||
| "htmlwidgets", | |||||
| "jsonlite", | |||||
| "reactR" | |||||
| ], | |||||
| "Hash": "6069eb2a6597963eae0605c1875ff14c" | |||||
| }, | |||||
| "readr": { | "readr": { | ||||
| "Package": "readr", | "Package": "readr", | ||||
| "Version": "2.1.4", | "Version": "2.1.4", | ||||
| }, | }, | ||||
| "renv": { | "renv": { | ||||
| "Package": "renv", | "Package": "renv", | ||||
| "Version": "1.0.3", | |||||
| "Version": "1.0.5", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "utils" | "utils" | ||||
| ], | ], | ||||
| "Hash": "41b847654f567341725473431dd0d5ab" | |||||
| "Hash": "32c3f93e8360f667ca5863272ec8ba6a" | |||||
| }, | }, | ||||
| "rlang": { | "rlang": { | ||||
| "Package": "rlang", | "Package": "rlang", | ||||
| "Version": "1.1.2", | |||||
| "Version": "1.1.3", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "utils" | "utils" | ||||
| ], | ], | ||||
| "Hash": "50a6dbdc522936ca35afc5e2082ea91b" | |||||
| "Hash": "42548638fae05fd9a9b5f3f437fbbbe2" | |||||
| }, | }, | ||||
| "rmarkdown": { | "rmarkdown": { | ||||
| "Package": "rmarkdown", | "Package": "rmarkdown", | ||||
| ], | ], | ||||
| "Hash": "906cb23d2f1c5680b8ce439b44c6fa63" | "Hash": "906cb23d2f1c5680b8ce439b44c6fa63" | ||||
| }, | }, | ||||
| "snakecase": { | |||||
| "Package": "snakecase", | |||||
| "Version": "0.11.1", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "stringi", | |||||
| "stringr" | |||||
| ], | |||||
| "Hash": "58767e44739b76965332e8a4fe3f91f1" | |||||
| }, | |||||
| "stringdist": { | "stringdist": { | ||||
| "Package": "stringdist", | "Package": "stringdist", | ||||
| "Version": "0.9.12", | "Version": "0.9.12", | ||||
| ], | ], | ||||
| "Hash": "a84e2cc86d07289b3b6f5069df7a004c" | "Hash": "a84e2cc86d07289b3b6f5069df7a004c" | ||||
| }, | }, | ||||
| "tidygeocoder": { | |||||
| "Package": "tidygeocoder", | |||||
| "Version": "1.0.5", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "dplyr", | |||||
| "httr", | |||||
| "jsonlite", | |||||
| "lifecycle", | |||||
| "progress", | |||||
| "tibble" | |||||
| ], | |||||
| "Hash": "44fd552dae5b20c4224e895449e3827a" | |||||
| }, | |||||
| "tidygraph": { | "tidygraph": { | ||||
| "Package": "tidygraph", | "Package": "tidygraph", | ||||
| "Version": "1.2.3", | "Version": "1.2.3", | ||||
| }, | }, | ||||
| "tidyr": { | "tidyr": { | ||||
| "Package": "tidyr", | "Package": "tidyr", | ||||
| "Version": "1.3.0", | |||||
| "Version": "1.3.1", | |||||
| "Source": "Repository", | "Source": "Repository", | ||||
| "Repository": "CRAN", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | "Requirements": [ | ||||
| "R", | "R", | ||||
| "cli", | "cli", | ||||
| "utils", | "utils", | ||||
| "vctrs" | "vctrs" | ||||
| ], | ], | ||||
| "Hash": "e47debdc7ce599b070c8e78e8ac0cfcf" | |||||
| "Hash": "915fb7ce036c22a6a33b5a8adb712eb1" | |||||
| }, | }, | ||||
| "tidyselect": { | "tidyselect": { | ||||
| "Package": "tidyselect", | "Package": "tidyselect", | ||||
| ], | ], | ||||
| "Hash": "460a5e0fe46a80ef87424ad216028014" | "Hash": "460a5e0fe46a80ef87424ad216028014" | ||||
| }, | }, | ||||
| "xml2": { | |||||
| "Package": "xml2", | |||||
| "Version": "1.3.6", | |||||
| "Source": "Repository", | |||||
| "Repository": "RSPM", | |||||
| "Requirements": [ | |||||
| "R", | |||||
| "cli", | |||||
| "methods", | |||||
| "rlang" | |||||
| ], | |||||
| "Hash": "1d0336142f4cd25d8d23cd3ba7a8fb61" | |||||
| }, | |||||
| "yaml": { | "yaml": { | ||||
| "Package": "yaml", | "Package": "yaml", | ||||
| "Version": "2.3.7", | "Version": "2.3.7", |
| local({ | local({ | ||||
| # the requested version of renv | # the requested version of renv | ||||
| version <- "1.0.3" | |||||
| version <- "1.0.5" | |||||
| attr(version, "sha") <- NULL | attr(version, "sha") <- NULL | ||||
| # the project directory | # the project directory | ||||
| if (!is.null(override)) | if (!is.null(override)) | ||||
| return(override) | return(override) | ||||
| # if we're being run in a context where R_LIBS is already set, | |||||
| # don't load -- presumably we're being run as a sub-process and | |||||
| # the parent process has already set up library paths for us | |||||
| rcmd <- Sys.getenv("R_CMD", unset = NA) | |||||
| rlibs <- Sys.getenv("R_LIBS", unset = NA) | |||||
| if (!is.na(rlibs) && !is.na(rcmd)) | |||||
| return(FALSE) | |||||
| # next, check environment variables | # next, check environment variables | ||||
| # TODO: prefer using the configuration one in the future | # TODO: prefer using the configuration one in the future | ||||
| envvars <- c( | envvars <- c( | ||||
| }) | }) | ||||
| if (!enabled) | |||||
| # bail if we're not enabled | |||||
| if (!enabled) { | |||||
| # if we're not enabled, we might still need to manually load | |||||
| # the user profile here | |||||
| profile <- Sys.getenv("R_PROFILE_USER", unset = "~/.Rprofile") | |||||
| if (file.exists(profile)) { | |||||
| cfg <- Sys.getenv("RENV_CONFIG_USER_PROFILE", unset = "TRUE") | |||||
| if (tolower(cfg) %in% c("true", "t", "1")) | |||||
| sys.source(profile, envir = globalenv()) | |||||
| } | |||||
| return(FALSE) | return(FALSE) | ||||
| } | |||||
| # avoid recursion | # avoid recursion | ||||
| if (identical(getOption("renv.autoloader.running"), TRUE)) { | if (identical(getOption("renv.autoloader.running"), TRUE)) { | ||||
| warning("ignoring recursive attempt to run renv autoloader") | warning("ignoring recursive attempt to run renv autoloader") | ||||
| # if jsonlite is loaded, use that instead | # if jsonlite is loaded, use that instead | ||||
| if ("jsonlite" %in% loadedNamespaces()) { | if ("jsonlite" %in% loadedNamespaces()) { | ||||
| json <- catch(renv_json_read_jsonlite(file, text)) | |||||
| json <- tryCatch(renv_json_read_jsonlite(file, text), error = identity) | |||||
| if (!inherits(json, "error")) | if (!inherits(json, "error")) | ||||
| return(json) | return(json) | ||||
| } | } | ||||
| # otherwise, fall back to the default JSON reader | # otherwise, fall back to the default JSON reader | ||||
| json <- catch(renv_json_read_default(file, text)) | |||||
| json <- tryCatch(renv_json_read_default(file, text), error = identity) | |||||
| if (!inherits(json, "error")) | if (!inherits(json, "error")) | ||||
| return(json) | return(json) | ||||
| } | } | ||||
| renv_json_read_jsonlite <- function(file = NULL, text = NULL) { | renv_json_read_jsonlite <- function(file = NULL, text = NULL) { | ||||
| text <- paste(text %||% read(file), collapse = "\n") | |||||
| text <- paste(text %||% readLines(file, warn = FALSE), collapse = "\n") | |||||
| jsonlite::fromJSON(txt = text, simplifyVector = FALSE) | jsonlite::fromJSON(txt = text, simplifyVector = FALSE) | ||||
| } | } | ||||
| renv_json_read_default <- function(file = NULL, text = NULL) { | renv_json_read_default <- function(file = NULL, text = NULL) { | ||||
| # find strings in the JSON | # find strings in the JSON | ||||
| text <- paste(text %||% read(file), collapse = "\n") | |||||
| text <- paste(text %||% readLines(file, warn = FALSE), collapse = "\n") | |||||
| pattern <- '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' | pattern <- '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' | ||||
| locs <- gregexpr(pattern, text, perl = TRUE)[[1]] | locs <- gregexpr(pattern, text, perl = TRUE)[[1]] | ||||
| map <- as.list(map) | map <- as.list(map) | ||||
| # remap strings in object | # remap strings in object | ||||
| remapped <- renv_json_remap(json, map) | |||||
| remapped <- renv_json_read_remap(json, map) | |||||
| # evaluate | # evaluate | ||||
| eval(remapped, envir = baseenv()) | eval(remapped, envir = baseenv()) | ||||
| } | } | ||||
| renv_json_remap <- function(json, map) { | |||||
| renv_json_read_remap <- function(json, map) { | |||||
| # fix names | # fix names | ||||
| if (!is.null(names(json))) { | if (!is.null(names(json))) { | ||||
| # recurse | # recurse | ||||
| if (is.recursive(json)) { | if (is.recursive(json)) { | ||||
| for (i in seq_along(json)) { | for (i in seq_along(json)) { | ||||
| json[i] <- list(renv_json_remap(json[[i]], map)) | |||||
| json[i] <- list(renv_json_read_remap(json[[i]], map)) | |||||
| } | } | ||||
| } | } | ||||
| ```{r setup} | ```{r setup} | ||||
| #| include: false | #| include: false | ||||
| library(tidyverse) | |||||
| library(dplyr) | |||||
| library(purrr) | |||||
| library(tidyr) | |||||
| library(fs) | library(fs) | ||||
| pkgload::load_all(here::here("process")) | pkgload::load_all(here::here("process")) | ||||
| ``` | ``` |