i uninstalled R studio in ubuntu and cleared all the existing files using commands like
sudo apt-get remove r-base
sudo apt-get remove r-base-core and
sudo apt purge r-*.
when i tried to re install using IDE, it installed but when i am trying to open the IDE it is not at all opening and showing the error "Path to R not specified, and no module binary specified; Invalid R module ()".