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

Don't pass our long script to parse R .rdb files via the command line; use stdin instead.

parent c525ba9b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ import binascii
HEADER = binascii.a2b_hex("580a000000020003")
DUMP_RDB = r"""
DUMP_RDB = rb"""
hideOutput = lazyLoad(commandArgs(TRUE));
for (x in ls(all.names = TRUE, sorted = TRUE)) {
......@@ -138,7 +138,10 @@ class RdbReader(Command):
@tool_required('Rscript')
def cmdline(self):
return ['Rscript', '--no-environ', '-e', DUMP_RDB, self.path]
return ['Rscript', '--no-environ', '-', self.path]
def input(self):
return DUMP_RDB
class RdbFile(File):
......
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