I want to add to my PATH so that my computer (Ubuntu) knows where to interpret the "R" command (for launching R). I need this so a Terminal or RStudio can find where I installed R.
I did all of the following, none of which permanently associates the command R with the directory of my R installation in
export PATH=$PATH:$HOME/R/bin<- This works within the Terminal session it was enacted in, but if I open up a second terminal, PATH goes back to what it was before I added $HOME/R/bin to it
The same "local Terminal only" behavior occurred when I added this line to two different files, based on recommendations on various websites:
sudo vim ~/.profile
sudo vim /etc/environment
Why won't R be recognized in new Terminal sessions?