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

Use a ("""-formatted) docstring for our R script to dump variables in .rdb files.

parent bbfdb57b
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,13 @@ import binascii
HEADER = binascii.a2b_hex("580a000000020003")
# has to be one line
DUMP_RDB = """lazyLoad(commandArgs(TRUE)); for (obj in ls()) { print(obj); for (line in deparse(get(obj))) cat(line,"\\n"); }"""
# unfortunately this above snippet can't detect the build-path differences so
# diffoscope still falls back to a hexdump
DUMP_RDB = r"""
lazyLoad(commandArgs(TRUE));
for (obj in ls()) {
print(obj);
for (line in deparse(get(obj)))
cat(line,"\n");
}"""
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