installing R in Linux

I'm trying to install R in AWS sagemaker. I was following the instructions here https://cran.cnr.berkeley.edu/, but it can't find r-base. I'm very new to linux. Can someone help me? Thank you