-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
60 lines (43 loc) · 1.1 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
output:
md_document:
variant: markdown_github
---
# rightscale
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
Use rightscale to interface with [rightscale.com](https://rightscale.com) for cloud pricing, management, and optimisation
## Installation
Install from github with devtools
```{r eval=FALSE}
if(!require(devtools)) install.packages(devtools)
devtools::install_github("locakedata/rightscale")
```
## Examples
Here some basic examples
```{r}
if(!require(rightscale)) devtools::load_all()
library(rightscale)
authenticate("fa4d643a3b2b95ac59ec0ad6381e86267abbe278")
clouds<-list_clouds()
tibble::glimpse(clouds)
```
```{r}
acloud<-get_cloud(1)
tibble::glimpse(acloud)
```
```{r}
anothercloud<-get_cloud(name="EC2 us-east-1")
tibble::glimpse(anothercloud)
```
```{r}
prices<-list_prices()
tibble::glimpse(prices)
```
```{r}
aprice<-get_price(547725001)
tibble::glimpse(aprice)
```
## Tests
```{r}
devtools::test()
```