Chapter 5 Wrap-up on AnVIL

Cloud computing costs are based on the amount of time you use the computing resources, so it’s important to clean up after yourself when you’re done, and not just leave the computers running.

There are two ways to “shut down” RStudio on AnVIL:

  • Pause the environment: This will save a copy of your work, and then release the computers for other people to use them. Do this if you plan to continue working in RStudio.
    • It’s similar to turning off your computer or phone - when you start it back up, everything will be where you left it.
    • This still costs a small amount of money, but much less than leaving the computer running.
  • Delete the environment: This will delete everything and then release the computers for other people to use them. Do this if you are completely finished working in RStudio, or if your future work will be in a new environment.
    • It’s similar to throwing your computer or phone in the trash!
    • You will not be able to recover your work.
    • Make sure you have saved anything you need before you delete your environment.

5.1 Pause RStudio environment

  1. The upper right corner reminds you that you are accruing cloud computing costs.

    Screenshot of the RStudio interface. The icon on the top right showing that the cloud environment is running is highlighted.

  2. You should minimize charges when you are not performing an analysis. You can do this by clicking on “Stop cloud environment”. This will release the CPU and memory resources for other people to use. Note that your work will be saved in the environment and continue to accrue a very small cost. This work will be lost if the cloud environment gets deleted. If there is anything you would like to save permanently, it’s a good idea to copy it from your compute environment to another location, such as the Workspace bucket, GitHub, or your local machine, depending on your needs.

    Screenshot of the RStudio interface. The stop icon on the top right which stops the cloud environment is highlighted.

5.2 Delete RStudio environment

  1. Stopping your cloud environment only pauses your work. When you are ready to delete the cloud environment, click on the gear icon in the upper right corner to “Update cloud environment”.

    Screenshot of the Workspace page. The gear icon on the top right that updates the cloud environment is highlighted.

  2. Click on “Delete Environment Options”.

    Screenshot of the cloud environment popout. "Delete environment options" is highlighted.

  3. If you are certain that you do not need the data and configuration on your disk, you should select “Delete everything, including persistent disk”. If there is anything you would like to save, open the compute environment and copy the file(s) from your compute environment to another location, such as the Workspace bucket, GitHub, or your local machine, depending on your needs.

    Screenshot of the cloud environment popout. "Delete everything, including persistent disk" is highlighted.

  4. Select “DELETE”.

    Screenshot of the cloud environment popout. "Delete" is highlighted.