=============================================
Creating an R environment and running RStudio
=============================================

#. In Navigator, click the Environments tab, then click the Create button.
   The Create new environment dialog box appears.
#. In the Environment name field, type a descriptive name for your environment.

   .. figure:: /img/navigator-renv1.png
      :width: 50%

      ..



#. In the Packages list, select "R".
#. On the drop-down menu, select ``mro`` to install Microsoft R Open with the
   packages ``mro-base`` and ``r-essentials``. If you prefer, you may instead
   select ``r`` to install R with the packages ``r-base`` and ``r-essentials``.
   For more information please see :doc:`../../user-guide/tasks/use-r-language`.
#. Click the Create button.
#. Navigator creates the new environment and activates it, as shown by the
   highlighted green bar. All actions take place in the active environment.

   .. figure:: /img/navigator-renv2.png
      :width: 50%

      ..



#. With the new environment active, click the Home button and then
   click the Install button on the RStudio application.

   .. figure:: /img/navigator-rstudioinstall.png
      :width: 50%

      ..



#. Click Launch to run RStudio from Navigator.

   .. figure:: /img/navigator-rstudiolaunch.png
      :width: 50%

      ..



#. You will see RStudio running from Navigator.

   .. figure:: /img/navigator-rstudiorunning.png
      :width: 50%

      ..
