rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.4k stars 258 forks source link

Can't confirm the operation inside R studio #672

Closed MislavSag closed 4 years ago

MislavSag commented 4 years ago

System details

> sessioninfo::session_info()
- Session info ----------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  Croatian_Croatia.1250       
 ctype    Croatian_Croatia.1250       
 tz       Europe/Warsaw               
 date     2020-09-16                  

- Packages --------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package         * version  date       lib source                               
 analogsea       * 0.8.0    2020-01-30 [1] CRAN (R 4.0.2)                       
 anytime           0.3.7    2020-01-20 [1] CRAN (R 4.0.0)                       
 askpass           1.1      2019-01-13 [1] CRAN (R 4.0.0)                       
 assertthat        0.2.1    2019-03-21 [1] CRAN (R 4.0.0)                       
 cli               2.0.2    2020-02-28 [1] CRAN (R 4.0.0)                       
 codetools         0.2-16   2018-12-24 [2] CRAN (R 4.0.2)                       
 crayon            1.3.4    2017-09-16 [1] CRAN (R 4.0.0)                       
 credentials       1.3.0    2020-07-21 [1] CRAN (R 4.0.2)                       
 curl              4.3      2019-12-02 [1] CRAN (R 4.0.0)                       
 data.table        1.12.8   2019-12-09 [1] CRAN (R 4.0.0)                       
 DBI               1.1.0    2019-12-15 [1] CRAN (R 4.0.2)                       
 fansi             0.4.1    2020-01-08 [1] CRAN (R 4.0.0)                       
 foreach           1.5.0    2020-03-30 [1] CRAN (R 4.0.0)                       
 fracdiff          1.5-1    2020-01-24 [1] CRAN (R 4.0.0)                       
 glue              1.4.1    2020-05-13 [1] CRAN (R 4.0.2)                       
 httr              1.4.1    2019-08-05 [1] CRAN (R 4.0.0)                       
 iterators         1.0.12   2019-07-26 [1] CRAN (R 4.0.0)                       
 jsonlite          1.7.0    2020-06-25 [1] CRAN (R 4.0.2)                       
 later             1.1.0.1  2020-06-05 [1] CRAN (R 4.0.2)                       
 lattice           0.20-41  2020-04-02 [2] CRAN (R 4.0.2)                       
 lifecycle         0.2.0    2020-03-06 [1] CRAN (R 4.0.0)                       
 magrittr          1.5      2014-11-22 [1] CRAN (R 4.0.0)                       
 MASS              7.3-51.6 2020-04-26 [2] CRAN (R 4.0.2)                       
 Matrix            1.2-18   2019-11-27 [2] CRAN (R 4.0.2)                       
 MultipleBubbles   0.2.0    2018-07-30 [1] CRAN (R 4.0.2)                       
 openssl           1.4.2    2020-06-27 [1] CRAN (R 4.0.2)                       
 plumber         * 1.0.0    2020-09-15 [1] Github (rstudio/plumber@c051c6b)     
 plumberDeploy   * 0.1.0    2020-09-16 [1] Github (meztez/plumberDeploy@68257d6)
 promises          1.1.1    2020-06-09 [1] CRAN (R 4.0.2)                       
 R6                2.4.1    2019-11-12 [1] CRAN (R 4.0.0)                       
 Rcpp              1.0.5    2020-07-06 [1] CRAN (R 4.0.2)                       
 reticulate        1.16     2020-05-27 [1] CRAN (R 4.0.2)                       
 rlang             0.4.6    2020-05-02 [1] CRAN (R 4.0.2)                       
 RMySQL            0.10.20  2020-03-14 [1] CRAN (R 4.0.0)                       
 rstudioapi        0.11     2020-02-07 [1] CRAN (R 4.0.0)                       
 sessioninfo       1.1.1    2018-11-05 [1] CRAN (R 4.0.0)                       
 ssh               0.7.0    2020-07-21 [1] CRAN (R 4.0.2)                       
 stringi           1.5.3    2020-09-09 [1] CRAN (R 4.0.2)                       
 swagger           3.33.0   2020-09-12 [1] CRAN (R 4.0.2)                       
 sys               3.3      2019-08-21 [1] CRAN (R 4.0.0)                       
 tsbox             0.2.1    2020-04-29 [1] CRAN (R 4.0.0)                       
 webutils          1.1      2020-04-28 [1] CRAN (R 4.0.2)                       
 withr             2.2.0    2020-04-20 [1] CRAN (R 4.0.0)                       
 xts               0.12-0   2020-01-19 [1] CRAN (R 4.0.0)                       
 yaml              2.2.1    2020-02-01 [1] CRAN (R 4.0.0)                       
 zoo               1.8-8    2020-05-02 [1] CRAN (R 4.0.0)                       

[1] C:/Users/Mislav/Documents/R/win-library/4.0
[2] C:/Program Files/R/R-4.0.2/library

Example application or steps to reproduce the problem


> plumberDeploy::do_provision(208122338)          
2 C:\Users\Mislav\AppData\Local\Temp\RtmpAxwDTv/NFzooWLIwU   WARNING: apt does not have a stable CLI interface. Use with caution in scripts.  Reading package lists... Building dependency tree... Reading state information... ca-certificates is already the newest version (20190110~18.04.1). dirmngr is already the newest version (2.2.4-1ubuntu1.2). gnupg is already the newest version (2.2.4-1ubuntu1.2). software-properties-common is already the newest version (0.96.24.32.14). The following package was automatically installed and is no longer required:   grub-pc-bin Use 'apt autoremove' to remove it. The following NEW packages will be installed:   apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 1692 B of archives. After this operation, 153 kB of additional disk space will be used. Do you want to continue? [Y/n]
--
Y y y

Describe the problem in detail

I am new to plumber. I have just tried to deploy sample script from plumber page on digital ocean. As requested on plumberDeploy page, I first tried to execute do_provision function. First I get some error at 15, it was connected with ssh. Then I remove pass from ssh and try again. Now it returns the above output and asks me do I want to continue, but I can't click Yes. If I type Y or y and click enter it just go to other line without executing anything. How can I confirm inside R studio?

EDIT

I have deleted the droplet, create a new one and try to execute the command plumberDeploy::do_provision(208129169) again. But this time it returns and error: Error: Authentication with ssh server failed But the function droplets() works as expected.

MislavSag commented 4 years ago

https://github.com/meztez/plumberDeploy/issues/9