Following up on a check failure in package gadget3, you have
cmd <- paste("R -d gdb --debugger-args=\"-x", gdbscript,
"\"")
cmd <- paste("R --vanilla < ", file, " -d gdb
--debugger-args=\"-x",
gdbscript, "\"")
You should not be using 'R' (and that is said many times in 'Writing R
Extensions') and you should not be assuming gdb.
Since this is being passed from a running R to a shell, you could use
something like
$R_HOME/bin$R_ARCH_BIN/R
or construct this in R by
file.path(R.home('bin'), "R")
You should at least allow the user the choice of debugger -- some
platforms do not have gdb, some also have lldb and on some the preferred
choice depend on the compiler in use. (There are other debuggers too.)
--
Brian D. Ripley