Skip to content
Snippets Groups Projects
Commit f1e80ca2 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Expose R .rdb file's absolute paths in the semantic/human-readable output, not in a hexdump.

parent 338dbdf5
No related branches found
No related tags found
No related merge requests found
Pipeline #81253 passed
...@@ -37,11 +37,21 @@ hideOutput = lazyLoad(commandArgs(TRUE)); ...@@ -37,11 +37,21 @@ hideOutput = lazyLoad(commandArgs(TRUE));
for (x in ls(all.names = TRUE, sorted = TRUE)) { for (x in ls(all.names = TRUE, sorted = TRUE)) {
obj = get(x) obj = get(x)
cat("\n", x, " (", typeof(obj), ") = ", sep = "");
for (line in deparse(obj)) cat(sprintf("%s (%s) = ", x, typeof(obj)), sep = "");
cat(line,"\n");
}""" if (typeof(obj) == "environment") {
cat("\n{\n", sep = "");
for (y in ls(obj, all.names = TRUE, sorted = TRUE))
cat(sprintf(" \"%s\" = \"%s\"\n", y, get(y, envir = obj)), sep = "");
cat("}\n");
} else {
for (line in deparse(obj))
cat(line, "\n", sep = "");
}
cat("\n");
}
"""
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment