Knitting error when deploying Rmd to R Studio Connect: "Calls: local ... withCallingHandlers -> withVisible -> eval -> eval -> <Anonymous> -> .f"

Hello,

I've got an Rmd file that serves as an ETL job on the server. It knits perfectly when I run it on my machine, but then when I try deploying it to R Studio Connect I get this error:

2019/04/17 10:37:28.810630979 Quitting from lines 67-148 (XXX.Rmd)
2019/04/17 10:37:28.810651978 Error in .f(.x[[i]], ...) : object 'df_res' not found
2019/04/17 10:37:28.810718111 Calls: local ... withCallingHandlers -> withVisible -> eval -> eval -> -> .f

As if while rendering some of the objects that normally should be accessible are not there. I assume it's linked to this problem: link.

RSC details:

image

Session info:

R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.4

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] forcats_0.3.0   stringr_1.3.1   dplyr_0.8.0.1   purrr_0.3.0    
[5] readr_1.2.1     tidyr_0.8.2     tibble_2.0.1    ggplot2_3.1.0  
[9] tidyverse_1.2.1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0         lubridate_1.7.4    lattice_0.20-38   
 [4] prettyunits_1.0.2  ps_1.3.0           assertthat_0.2.0  
 [7] packrat_0.5.0      digest_0.6.18      utf8_1.1.4        
[10] R6_2.3.0           cellranger_1.1.0   plyr_1.8.4        
[13] backports_1.1.2    stats4_3.5.2       evaluate_0.12     
[16] httr_1.4.0         pillar_1.3.1       rlang_0.3.1       
[19] lazyeval_0.2.1     curl_3.2           readxl_1.1.0      
[22] rstudioapi_0.9.0   callr_3.1.0        blob_1.1.1        
[25] rmarkdown_1.11     RPostgres_1.1.1    config_0.3        
[28] loo_2.0.0          RCurl_1.95-4.11    bit_1.1-14        
[31] munsell_0.5.0      broom_0.5.0        compiler_3.5.2    
[34] modelr_0.1.2       xfun_0.4           rstan_2.18.2      
[37] pkgconfig_2.0.2    askpass_1.1        pkgbuild_1.0.2    
[40] htmltools_0.3.6    openssl_1.2.1      tidyselect_0.2.5  
[43] gridExtra_2.3      matrixStats_0.54.0 fansi_0.4.0       
[46] crayon_1.3.4       withr_2.1.2        bitops_1.0-6      
[49] grid_3.5.2         nlme_3.1-137       jsonlite_1.6      
[52] gtable_0.2.0       DBI_1.0.0.9001     magrittr_1.5      
[55] StanHeaders_2.18.0 scales_1.0.0       cli_1.0.1         
[58] stringi_1.2.4      xml2_1.2.0         tools_3.5.2       
[61] bit64_0.9-7        glue_1.3.0         hms_0.4.2         
[64] parallel_3.5.2     processx_3.2.1     rsconnect_0.8.13  
[67] yaml_2.2.0         inline_0.3.15      colorspace_1.3-2  
[70] rvest_0.3.2        knitr_1.22         haven_2.0.0     

Anyone came across a similar issue?

1 Like

This topic was automatically closed 21 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.