sed and expr not found and non-zero exit status when installing igraph

This thread seems to be continued here: Rstudio/R can't find path for sh