rsconnect::deployTFModel - Error in if (source %in% names(repos)) repos[[source]] else NA : argument is of length zero

I'm trying to deploy a model trained with Keras to RStudio Connect but I'm getting the following error:

Preparing to deploy application...DONE
Uploading bundle for application: 75...Error in if (source %in% names(repos)) repos[[source]] else NA : 
  argument is of length zero
In addition: Warning message:
Unable to package DESCRIPTION files: subscript out of bounds 

The command I'm executing is:

export_savedmodel(model, "my_model")
rsconnect::deployTFModel(
  "my_model",
  account = "my_account",
  server = "my_server",
  appName = "my_app"
)
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS  10.14.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] bindrcpp_0.2.2  aider_0.0.1.05  recipes_0.1.4   readxl_1.1.0    lime_0.4.1      magrittr_1.5   
 [7] rsample_0.0.2   broom_0.5.0     quanteda_1.3.13 forcats_0.3.0   stringr_1.3.1   dplyr_0.7.8    
[13] purrr_0.2.5     readr_1.2.1     tidyr_0.8.2     tibble_1.4.2    ggplot2_3.1.0   tidyverse_1.2.1
[19] keras_2.2.0    

loaded via a namespace (and not attached):
 [1] nlme_3.1-137       bitops_1.0-6       lubridate_1.7.4    httr_1.4.0         SnowballC_0.5.1   
 [6] tools_3.5.1        backports_1.1.2    utf8_1.1.4         R6_2.3.0           rpart_4.1-13      
[11] lazyeval_0.2.1     colorspace_1.3-2   nnet_7.3-12        withr_2.1.2        tidyselect_0.2.5  
[16] compiler_3.5.1     glmnet_2.0-16      cli_1.0.1          rvest_0.3.2        xml2_1.2.0        
[21] scales_1.0.0       tfruns_1.4         digest_0.6.18      base64enc_0.1-3    pkgconfig_2.0.2   
[26] htmltools_0.3.6    textfeatures_0.3.0 htmlwidgets_1.3    rlang_0.3.0.1      rstudioapi_0.8    
[31] shiny_1.2.0        bindr_0.1.1        generics_0.0.2     jsonlite_1.6       tensorflow_1.9    
[36] tokenizers_0.2.1   RCurl_1.95-4.11    Matrix_1.2-15      Rcpp_1.0.0         munsell_0.5.0     
[41] fansi_0.4.0        tfse_0.4.4         reticulate_1.10    stringi_1.2.4      whisker_0.3-2     
[46] MASS_7.3-51.1      plyr_1.8.4         grid_3.5.1         promises_1.0.1     crayon_1.3.4      
[51] lattice_0.20-38    haven_2.0.0        splines_3.5.1      hms_0.4.2          zeallot_0.1.0     
[56] pillar_1.3.0       codetools_0.2-15   stopwords_0.9.0    fastmatch_1.1-0    glue_1.3.0        
[61] packrat_0.5.0      data.table_1.11.8  RcppParallel_4.4.1 modelr_0.1.2       httpuv_1.4.5      
[66] foreach_1.4.4      cellranger_1.1.0   openssl_1.1        gtable_0.2.0       assertthat_0.2.0  
[71] gower_0.1.2        mime_0.6           prodlim_2018.04.18 xtable_1.8-3       later_0.7.5       
[76] rsconnect_0.8.11   class_7.3-14       survival_2.43-1    timeDate_3043.102  shinythemes_1.1.2 
[81] iterators_1.0.10   spacyr_0.9.91      lava_1.6.4         ipred_0.9-8   

and rsconnect package version 0.8.11.

Sorry for the trouble, this problem has been fixed in the development version of the rsconnect package: https://github.com/rstudio/rsconnect/pull/316

Can you try the latest and let us know if that fixes the error?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.