Skip to content

restarting interrupted promise evaluation #4

@timtrice

Description

@timtrice

The complete error is:

> Error: cannot open file '/home/rstudio/book/book_cache/html/individual-asset-returns_40186e1f2d45679c0c1f9edda1e1e4d2.rdb': No such file or directory
In addition: Warning message:

I have knitr::cache set to TRUE.

I get this message after running preview_chapter("02-Averages.Rmd"). This is the only chapter I have. This message only shows after I've run the preview_chapter command. Every time I save an update ot the file, the message regenerates. There is no indication of any background running. If I let it continue too long it freezes Rstudio and I must restart the server. Then I get:

Error saving session (search_path): R code execution error
WARNING: Forcing suspend of process in spite of all session data not being fully saved.

The book_cache directory is created when the preview_chapter command is running but then disappears.

If I turn knitr::cache off, I do not get the error.

I'm running RStudio 0.99.893. Here is my sesssionInfo output:

R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS

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

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

other attached packages:
 [1] tidyr_0.4.1                   lattice_0.20-33               ggplot2_2.0.0                 dplyr_0.4.3                  
 [5] quantstrat_0.9.1739           foreach_1.4.3                 blotter_0.9.1741              PerformanceAnalytics_1.4.4000
 [9] FinancialInstrument_1.2.0     quantmod_0.4-5                TTR_0.23-1                    xts_0.9.874                  
[13] zoo_1.7-13                    bookdown_0.0.62              

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.4       plyr_1.8.3        formatR_1.3       iterators_1.0.8   tools_3.2.3       digest_0.6.9     
 [7] gtable_0.1.2      evaluate_0.8.3    shiny_0.13.2      DBI_0.3.1         yaml_2.1.13       parallel_3.2.3   
[13] stringr_1.0.0     knitr_1.12.3      grid_3.2.3        R6_2.1.2          rmarkdown_0.9.5.9 magrittr_1.5     
[19] scales_0.3.0      codetools_0.2-14  htmltools_0.3.5   rsconnect_0.4.2.2 assertthat_0.1    colorspace_1.2-6 
[25] mime_0.4          xtable_1.8-2      httpuv_1.3.3      stringi_1.0-1     miniUI_0.1.1      munsell_0.4.2 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions