KevCaz's Website

Today, as I working on a post, I got this issue when using the R command wrapper:

1
2
3
$ Rscript --no-site-file -e 'blogdown::serve_site()'
/usr/lib/R/bin/R: line 193: /usr/bin/sed: No such file or directory
ERROR: option '-e' requires a non-empty argument

I did not understand what happened so I decided to google it! The bug was already identified and reported 😄. A side note to mention that several packages now imports callr (for instance pkgdown) and as it uses the R command wrapper (if I understand correctly) the current bug actually affects several different packages. A simple example is when I try to rebuild the website of rcites (using pkgdown):

1
2
3
4
5
R> pkgdown::build_site()
/usr/lib/R/bin/R: line 201: /usr/bin/sed: No such file or directory
ERROR: option '-f' requires a filename argument
Error: callr failed, could not start R, exited with non-zero status, has crashed or was killed /usr/lib/R/bin/R: line 201: /usr/bin/sed: No such file or directory
ERROR: option '-f' requires a filename argument

Solution? Dirk Eddelbuettel is working on this, so it should be fixed very soon!

I think I’ll just build and ship a fresh 3.5.1-2 which should take care of this.