rstudio/bookdown-demo

restarting interrupted promise evaluation

timtrice opened this issue · 3 comments

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 
yihui commented

I have no idea what this means, and you didn't provide a reproducible example, so there is nothing I can do about it. Sorry.

Since you are using RStudio, there is no need to call preview_chapter() by hand. The latest preview version of RStudio does this automatically for you when you click the Knit button: https://bookdown.org/yihui/bookdown/rstudio-ide.html

I noticed that he's not running the Preview release of RStudio. See the
bookdown getting started docs, it asks you to install the preview release:
https://bookdown.org/

On Sat, Apr 9, 2016 at 9:38 PM, Yihui Xie notifications@github.com wrote:

I have no idea what this means, and you didn't provide a reproducible
example, so there is nothing I can do about it. Sorry.

Since you are using RStudio, there is no need to call preview_chapter()
by hand. The latest version of RStudio does this automatically for you when
you click the Knit button:
https://bookdown.org/yihui/bookdown/rstudio-ide.html


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#4 (comment)

I will say i got a similar issue
> save(list=oo,file="~/delete.Rdata") Error in save(list = oo, file = "~/delete.Rdata") : cannot open file '/home/hadoop/r/week_predict_usage_tipping_point_cache/html/c127_4b1fda5c6c36cce7b2bbf2dc02bcdd4b.rdb': No such file or directory In addition: Warning message: In save(list = oo, file = "~/delete.Rdata") : restarting interrupted promise evaluation

sessionInfo:

`
R version 3.2.1 (2015-06-18)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Amazon Linux AMI 2016.09

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

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

other attached packages:
[1] boot_1.3-16 mgcv_1.8-6 nlme_3.1-120 progress_1.1.2 rmarkdown_1.4.0.9001 latticeExtra_0.6-26 RColorBrewer_1.1-2
[8] Hmisc_3.16-0 ggplot2_1.0.1 Formula_1.2-1 survival_2.38-1 lattice_0.20-31 colorout_1.1-2 data.table_1.9.4
[15] Rhipe_0.75.2 rJava_0.9-6 codetools_0.2-11

loaded via a namespace (and not attached):
[1] Rcpp_0.11.6 git2r_0.10.1 plyr_1.8.3 prettyunits_1.0.0 tools_3.2.1 rpart_4.1-9 digest_0.6.8 memoise_0.2.1 evaluate_0.10
[10] gtable_0.1.2 Matrix_1.2-1 curl_0.9 yaml_2.1.13 proto_0.3-10 gridExtra_0.9.1 httr_1.0.0 xml2_0.1.1 stringr_1.0.0
[19] cluster_2.0.1 knitr_1.15.7 rversions_1.0.1 devtools_1.8.0 rprojroot_1.2 nnet_7.3-9 R6_2.0.1 foreign_0.8-63 reshape2_1.4.1
[28] magrittr_1.5 scales_0.2.5 backports_1.0.5 htmltools_0.3.6 MASS_7.3-40 splines_3.2.1 assertthat_0.1 colorspace_1.2-6 stringi_0.5-5
[37] acepack_1.3-3.3 munsell_0.4.2 chron_2.3-47
`