Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Open RStudio and click on the File menu.
  2. Click on New Project.
  3. Select "Existing Directory" and choose the directory that contains the files for your project.
  4. Click on the "Create Project" button.
  5. In the Console window of RStudio, enter the command Sys.setenv(VARIABLE_NAME="VALUE") to set the value of the environment variable.
  6. Replace VARIABLE_NAME with the name of your environment variable and VALUE with the value you want to assign to it.
  7. To check if the environment variable has been set, enter the command Sys.getenv("VARIABLE_NAME") in the Console window.
  8. If the value of the environment variable is returned, it has been successfully configured in RStudio.