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

Don't read the R site and user environment when comparing .rdx, .rdb or .rds files.

parent ea4c94a7
...@@ -87,6 +87,7 @@ class RdsReader(Command): ...@@ -87,6 +87,7 @@ class RdsReader(Command):
def cmdline(self): def cmdline(self):
return [ return [
'Rscript', 'Rscript',
'-e', '-e',
'args <- commandArgs(TRUE); readRDS(args[1])', 'args <- commandArgs(TRUE); readRDS(args[1])',
self.path, self.path,
...@@ -113,7 +114,7 @@ class RdsFile(File): ...@@ -113,7 +114,7 @@ class RdsFile(File):
class RdbReader(Command): class RdbReader(Command):
@tool_required('Rscript') @tool_required('Rscript')
def cmdline(self): def cmdline(self):
return ['Rscript', '-e', DUMP_RDB, self.path] return ['Rscript', '--no-environ', '-e', DUMP_RDB, self.path]
class RdbFile(File): class RdbFile(File):
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