https://github.com/corymccartan/azr
Configure Azure Services for R
https://github.com/corymccartan/azr
Last synced: 1 day ago
JSON representation
Configure Azure Services for R
- Host: GitHub
- URL: https://github.com/corymccartan/azr
- Owner: CoryMcCartan
- License: other
- Created: 2022-12-22T23:59:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T02:55:18.000Z (2 months ago)
- Last Synced: 2025-04-08T03:32:23.210Z (2 months ago)
- Language: R
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# azr
The `azr` package provides functionality to install the Azure CLI, set up Azure
virtual machines, and install the RStudio IDE on a VM instance.## Installation
You can install azr with:
``` r
remotes::install("CoryMcCartan/azr")
```## Setting up Azure with azr
You need to point the package to the right Azure subscription.
To do so, set the following environment variables (you can add them to your `.Renviron`).``` r
AZURE_DIR=''
AZURE_SUB_ID=''
```To set up a virtual machine with R installed, run
``` r
azr::azr_vm_setup()
```You can specify the type of machine with `size=`, and additionally install a
recent version of Rstudio Server with `rstudio=TRUE` and install R spatial
packages with `spatial=TRUE`.
Any R configuration files on your local machine (`.Rprofile`, etc.) will also be transferred to the VM.Once a machine is set up, you can get the command to SSH into it with
`azr_ssh_cmd()`.
You can also start and stop the VM with `azr_vm_start()` and `azr_vm_stop()`.