You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readr::write_csv is not completing when I try to write 100 csv files in a loop. It writes some of the files and then locks up requiring a restart or R. The number of files it successfully writes varies each time I try and run.
In summary, the code I am trying to run works with small files or a small loop, but it fails with moderate sized files or loops because something is getting overwhelmed when I try an write out a lot of files in a short amount of time.
I have been trying to utilize the Sys.sleep function to alleviate but it has not been succesfull.
base R write.csv does work successfully when I run this loop.
readr::write_csv is not completing when I try to write 100 csv files in a loop. It writes some of the files and then locks up requiring a restart or R. The number of files it successfully writes varies each time I try and run.
In summary, the code I am trying to run works with small files or a small loop, but it fails with moderate sized files or loops because something is getting overwhelmed when I try an write out a lot of files in a short amount of time.
I have been trying to utilize the Sys.sleep function to alleviate but it has not been succesfull.
base R write.csv does work successfully when I run this loop.
Thank you for your attention!
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tibble_3.2.1 purrr_1.0.2 readr_2.1.4
loaded via a namespace (and not attached):
[1] utf8_1.2.4 R6_2.5.1 tzdb_0.4.0 magrittr_2.0.3 glue_1.6.2
[6] pkgconfig_2.0.3 lifecycle_1.0.4 cli_3.6.1 fansi_1.0.5 vctrs_0.6.4
[11] compiler_4.3.1 rstudioapi_0.15.0 tools_4.3.1 hms_1.1.3 pillar_1.9.0
[16] rlang_1.1.2
The text was updated successfully, but these errors were encountered: