Commit f1e80ca2 authored by Chris Lamb's avatar Chris Lamb 💬

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

parent 338dbdf5
Pipeline #81253 passed with stage
in 20 minutes and 49 seconds
......@@ -37,11 +37,21 @@ hideOutput = lazyLoad(commandArgs(TRUE));
for (x in ls(all.names = TRUE, sorted = TRUE)) {
obj = get(x)
cat("\n", x, " (", typeof(obj), ") = ", sep = "");
for (line in deparse(obj))
cat(line,"\n");
}"""
cat(sprintf("%s (%s) = ", x, typeof(obj)), sep = "");
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__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment