(I split this new question into a new thread.)
Hmm, so Gang's AFNI function rPkgsInstall doesn't install R-- for that, you need to use your package manage (-> Aptitude, on Ubuntu).
So, what is returned by:
$ which R
and
$ afni_system_check.py -check_all
?
The second command shouldn't need to be run from with the 'abin' directory-- it should be in your path.
The Ubuntu 16.04 setup has a couple quirks from the earlier version builds-- but it sounds like you have already dealt with a couple. Are you following these install instructions here:
[
afni.nimh.nih.gov]
... with adding in a couple different steps? If so, have you followed Step 5 to get R?
--pt