pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
154 stars 24 forks source link

Cannot create droplet, get error regarding droplet size #92

Closed cboettig closed 9 years ago

cboettig commented 9 years ago

I run docklet_create or droplet_create and I get:

> droplet_create()
Using default ssh keys: strata
Error in droplet$size$price_hourly : 
  $ operator is invalid for atomic vectors

seems to happen regardless of the size I specify. Here's sessionInfo:

sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=C              
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] analogsea_0.1.8.9999 knitr_1.7            devtools_1.6.1      

loaded via a namespace (and not attached):
 [1] RCurl_1.95-4.3  Rcpp_0.11.3     assertthat_0.1  evaluate_0.5.5 
 [5] formatR_1.0     httr_0.5.0.9000 jsonlite_0.9.13 magrittr_1.0.1 
 [9] plyr_1.8.1      stringr_0.6.2   tools_3.1.2    
cboettig commented 9 years ago

I notice that the droplet is being created at the size I request, I'm just getting the error in the reporting step.

sckott commented 9 years ago

thanks @cboettig , taking a look

sckott commented 9 years ago

ah right, i think they used to provide the price of the droplet in the response of the create droplet endpoint, but no longer, fixing that

sckott commented 9 years ago

@cboettig see if that works now...