dplyr and lubridate chain crashing r -
i'm stuck why following code crashing r on machine (both in rstudio , basic r gui) - appreciated!
library(dplyr) library(lubridate) dates <- data.frame(date = seq(ymd('2015-01-01'),ymd_hms('2019-06-20 23:00:00'),by = "hour")) # run section few times (simulate many calls in shiny app) for(i in 1:10) test_df <- dates %>% mutate(month = month(date), year = year(date))
my session info:
r version 3.1.3 (2015-03-09) platform: x86_64-w64-mingw32/x64 (64-bit) running under: windows 7 x64 (build 7601) service pack 1 locale: [1] lc_collate=english_united states.1252 lc_ctype=english_united states.1252 lc_monetary=english_united states.1252 [4] lc_numeric=c lc_time=english_united states.1252 attached base packages: [1] stats graphics grdevices utils datasets methods base other attached packages: [1] lubridate_1.3.3 dplyr_0.4.2 loaded via namespace (and not attached): [1] assertthat_0.1 dbi_0.3.1 digest_0.6.8 magrittr_1.5 memoise_0.2.1 parallel_3.1.3 plyr_1.8.3 r6_2.0.1 rcpp_0.11.6 [10] stringi_0.4-1 stringr_1.0.0 tools_3.1.3
update:
i tried re-installing rcpp dplyr, still ran same issue. furthermore, able recreate same issue on mac. ended doing, rolling version of dplyr (0.4.1), restarting, , things working expected. checked rstudio log file after crash , saw this:
logged from: void {anonymous}::rcleanup(bool) c:\users\administrator\rstudio\src\cpp\session\sessionmain.cpp:2311 18 jun 2015 21:20:22 [rsession-cmohan] error r error 4 (r code execution error) [errormsg=error: cannot allocate vector of size 4.0 gb|||]; occurred at: rstudio::core::error rstudio::r::exec::{anonymous}::evaluateexpressionsunsafe(sexp, sexp, sexprec**, rstudio::r::sexp::protect*) c:\users\administrator\rstudio\src\cpp\r\rexec.cpp:149
Comments
Post a Comment