Can you share the output of your installation? The sudo apt install r-base command? Maybe try that again and see what happens? The log would be very helpful!
After I tried it again, the same problem still exists. I attach the log file (the pdf one, the authorized version) in this email. Thank you for your help.
Many thanks for your email. However, after I tried the recipe from https://goo.gl/alZYVs, the error still exists. I add the log in this email (pdf version), hope it helps. And thanks again for you help.
The problem shows up at the end of the log, which is that it shows
r-base-dev is already the newest version (3.5.1-2xenial)
But that's an older Ubuntu version than the one you're on, which is bionic, which is what I'm using, and it does not have
/usr/local/bin/R: line 238: /usr/local/lib/R/etc/ldpaths: No such file or directory/usr/local/bin/R: line 261: /usr/local/lib/R/bin/exec/R: No such file or directory
because the install for bionic puts R in /usr/bin.
That said, my Ubuntu uninstall experience is rusty. Anyone else ?
When you to to re-install? Be sure to start out with adding
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
This is a strange one. It seems like something is very wrong with the binary installation. Unfortunately, my understanding of how the binary installation works / how it can break / how to resolve it is pretty limited. I would love to hear if others have thoughts. You can always try exploration of the R installation directory, which R, and the like.
Something I would actually recommend trying is to build R from source. I'm curious if that will either (1) succeed, or (2) fail with a bit more verbosity that points to the root issue. One downside is that you do need the build dependencies for R in this case.
There are a lot of resources on the topic. I believe my favorites are:
Many thanks for your help. However, after I added the line you mentioned in the source.list, this problem still exists. Please see the attached file of the latest log. Could you give me further suggestion? Thank you again.