Error running rPkgsInstall -pkgs ALL

AFNI Experts,

I am trying to install afni on my linux (CentOS 7). I am getting many warnings and error messages when I try to install R (using rPkgsInstall -pkgs ALL). Is there a solution for the following error?

Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, …):
unable to load shared object ‘/home/lceuser/R/RCurl/libs/RCurl.so’:
libicui18n.so.58: cannot open shared object file: No such file or directory

Thank you
Chirag

Chirag,

You can try to install those R packages inside R with the command

install.packages(‘xxx’)

where ‘xxx’ is each of the following

‘afex’, ‘phia’, ‘snow’, ‘nlme’, ‘lme4’, ‘brms’