When running R in a container like this
guix environment --no-cwd -C --ad-hoc r-minimal -- Rscript -e 'Sys.timezone()'
it would print an additional line
sh: rm: command not found
before exiting.
* gnu/packages/statistics.scm (r-with-tests) [#:phases]: Add substitute*
to patch call to `rm` and rename phase to reflect what it does now.