packrat hangs rstudio preview when new packages are added to a script
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
I have a script that installs required packages for a project. I was adding new packages to install to this script and RStudio Preview 1.2 responses became slower, eventually becoming unresponsive all together and hanging.
The last thing I did before everything became completely unresponsive was try to pull up the help page for a local package. I also had a notebook open which I was trying to edit and there was a message in the console saying it was quiting from lines 115 - 180 (which contain an sql chunk). The hang lasted about 20 minutes.
When I shut down RStudio and restarted the project it did not hang, but responses were sometimes a bit slow.
I am using:
- RStudio preview Version 1.2.1237
See below for rest of session info:
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgisws_0.1.5 openxlsx_4.1.0 lubridate_1.7.4 PKI_0.1-5.1 base64enc_0.1-3
[6] RPostgreSQL_0.6-2 DBI_1.0.0 config_0.3 here_0.1 packrat_0.4.9-3
[11] phemisc_0.0.0.9000 data.table_1.12.0
loaded via a namespace (and not attached):
[1] pkgload_1.0.2 jsonlite_1.6 StanHeaders_2.17.2 assertthat_0.2.0 expm_0.999-3
[6] BiocManager_1.30.4 sp_1.3-1 stats4_3.5.2 yaml_2.2.0 remotes_2.0.2
[11] sessioninfo_1.1.1 pillar_1.3.1 backports_1.1.3 lattice_0.20-38 glue_1.3.0
[16] digest_0.6.18 colorspace_1.4-0 htmltools_0.3.6 Matrix_1.2-15 plyr_1.8.4
[21] pkgconfig_2.0.2 devtools_2.0.1 rstan_2.17.3 purrr_0.2.5 mvtnorm_1.0-8
[26] scales_1.0.0 processx_3.2.1 manipulate_1.0.1 tibble_2.0.1 ggplot2_3.1.0
[31] usethis_1.4.0 withr_2.1.2 lazyeval_0.2.1 cli_1.0.1 magrittr_1.5
[36] crayon_1.3.4 memoise_1.1.0 evaluate_0.12 ps_1.3.0 fs_1.2.6
[41] MASS_7.3-51.1 foreign_0.8-71 pkgbuild_1.0.2 tools_3.5.2 prettyunits_1.0.2
[46] geosphere_1.5-7 stringr_1.3.1 munsell_0.5.0 zip_1.0.0 bindrcpp_0.2.2
[51] callr_3.1.1 compiler_3.5.2 rlang_0.3.1 grid_3.5.2 rstudioapi_0.9.0
[56] rmarkdown_1.11 boot_1.3-20 testthat_2.0.1 DescTools_0.99.26 gtable_0.2.0
[61] inline_0.3.15 R6_2.3.0 gridExtra_2.3 knitr_1.21 dplyr_0.7.8
[66] bindr_0.1.1 rprojroot_1.3-2 desc_1.2.0 stringi_1.2.4 Rcpp_1.0.0
[71] tidyselect_0.2.5 xfun_0.4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported hang while adding packages to an installation script, opening help for a local package, and editing the notebook's SQL chunk in RStudio Preview. Use the provided sessionInfo and package versions to narrow the environment; done means identifying a reproducible cause and confirming that the preview remains responsive in the same scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100