-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R 3.6.3 on Ubuntu Focal points to a non-existant sed #72
Comments
I must add that I'm on Linux Mint 20 (derived from Ubuntu 20.04), so not 100% sure the path to sed in Mint equals that of Ubuntu, but I'd expect so (Mint uses the Ubuntu repo). |
Hi, the $ docker run -it --rm ubuntu:focal
root@d0461c08a686:/# which sed
/usr/bin/sed
root@d0461c08a686:/# readlink -f /bin/sed
/usr/bin/sed I'm not familiar with Linux Mint 20, but I think recent versions of Ubuntu now have |
Hi @glin , thanks for the help. Indeed, in the meantime I had solved it with a symlink from I think this issue can be closed. |
@glin I have been thinking further about this, regarding the R build. After all, my regular R install from CRAN (from https://cloud.r-project.org) runs perfectly on Mint (also with renv), and it is the 'official' Ubuntu build (I use ## some systems have a more portable sed, e.g. /usr/xpg4/bin/sed on Solaris,
## so make sure that is used.
SED=/bin/sed
export SED So for some reason this is different from the build from RStudio - and clearly the above one is Mint-proof 😉 - so that may be worth considering. Note, I did not compile R, I just installed the binary packages ( Thanks for referring to the message on Disco Dingo. This seems quite a deep change, I didn't know about, and it seems the Mint developers may not have followed this. I may look further at it (live Ubuntu desktop, Mint devs) when I find some time. As a final note: I said I changed the path to sed in |
FYI, this is followed up at Linux Mint: linuxmint/linuxmint#294 |
When installing R 3.6.3 for Ubuntu Focal using https://docs.rstudio.com/resources/install-r/#download-and-install-r, it appears that
/opt/R/3.6.3/lib/R/bin/R
at line 120 has:However sed is in
/bin
, not/usr/bin
, and the path had to be changed into the following, in order to let e.g.bookdown::render_book()
do its job.The text was updated successfully, but these errors were encountered: