The message is telling you that
/home/moodley/anaconda3/bin/R is not in the user
$PATH but it is in the
$PATH. It also tells me that you are at risk of continuing problems with installing
R packages even if this is fixed.
anaconda is a great package manager for
Python. I've seen lots of
anaconda related problems on this board, but no success stories. There might be some people who are perfectly happy, but they are the quiet types.
What you can do is to edit your
$PATH to include
/home/moodley/anaconda3/bin. If you don't know how to do that, that is a good indicator that you shouldn't try without local support from someone who can stand over your shoulder and guide you.
What you should do is to use (example for
# update indices
sudo apt update -qq
# install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt install --no-install-recommends r-base