Unable to find an installation of R on the system

I tried installing RStudio Server, following this documentation: Download RStudio Server for Red Hat/CentOS - RStudio , but when trying to start the service I get this error
ERROR Could not find an installation of R on the system (which R did not return a valid output); Could not locate the R binary by scanning the standard locations
-bash-4.2$ which R
-bash-4.2$ R --version
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
Licenses - GNU Project - Free Software Foundation.

Can you please guide me to fix this problem?
Best Regards.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.