Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete not working in R interactive terminal #471

Open
vincent-van-hoef opened this issue Feb 20, 2024 · 3 comments
Open

Autocomplete not working in R interactive terminal #471

vincent-van-hoef opened this issue Feb 20, 2024 · 3 comments

Comments

@vincent-van-hoef
Copy link

Hello,

First of all thanks for this great tool!

I have installed and set up radian according to the instructions at https://code.visualstudio.com/docs/languages/r. Everything works fine; I can easily send code from the script to the R terminal and for the most part I am very happy with the setup.

Only the autocomplete in the automatically started terminal does not work. Some suggestions for loaded library names do pop pup, but nothing for data frames, data frame column names or lists.... Interestingly, when opening radian from the vscode integrated terminal (by just typing radian), everything works as expected. The problem only seems to be in the terminal that automatically gets started when sending the first line of code from an R script.

Ubuntu 22.04
radian version: 0.6.12
r executable: /usr/local/lib/R/bin/R
r version: 4.3.1
python executable: /usr/bin/python3
python version: 3.10.12

Don't know if it is relvant but I changed some vscode settings:
"r.plot.useHttpgd": true,
"editor.wordWrap": "wordWrapColumn",
"r.rterm.linux": "/usr/local/bin/radian",
"editor.autoClosingBrackets": "always",
"r.bracketedPaste": true,
"liveServer.settings.useLocalIp": false,
"r.alwaysUseActiveTerminal": true,
"remote.localPortHost": "allInterfaces"

Is there anything I could try to remedy this?

@vincent-van-hoef
Copy link
Author

Upon further investigation it seems it also works from the automatically started terminal but only for a short while. Autocompletion disappears after for example sending a bunch of library() calls to the terminal (this is usually how I start the R interactive terminal, so I didn't notice before it did work prior to this library calls). Strange!

@vincent-van-hoef
Copy link
Author

Sorry for this confusing issue, but I narrowed it down to the loading of a single package: ggstatsplot. Attaching this via library(ggstatsplot) or even calling a function via ggstatsplot::function immediately stop the autocomplete from working. It would be useful to know if more people have the same issue...

@ohmstead
Copy link

Same issue. I can reproduce this by autocompletion failing only after loading package paletteer version 1.6.0. It happens when loading via library() or using a function through the paletteer:: namespace.

─ Session info ──────────────────────────────────────────
 setting  value
 version  R version 4.4.0 (2024-04-24)
 os       macOS Sonoma 14.5
 system   aarch64, darwin20
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/Los_Angeles
 date     2024-09-10
 pandoc   NA

─ Packages ───────────────────────────────────────────
 package          * version    date (UTC) lib source
 abind              1.4-5      2016-07-21 [1] CRAN (R 4.4.0)
 BiocGenerics       0.50.0     2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 bit                4.0.5      2022-11-15 [1] CRAN (R 4.4.0)
 bit64              4.0.5      2020-08-30 [1] CRAN (R 4.4.0)
 circlize         * 0.4.16     2024-02-20 [1] CRAN (R 4.4.0)
 cli                3.6.3      2024-06-21 [1] CRAN (R 4.4.0)
 clue               0.3-65     2023-09-23 [1] CRAN (R 4.4.0)
 cluster            2.1.6      2023-12-01 [1] CRAN (R 4.4.0)
 codetools          0.2-20     2024-03-31 [1] CRAN (R 4.4.0)
 colorspace         2.1-1      2024-07-26 [1] CRAN (R 4.4.0)
 ComplexHeatmap   * 2.20.0     2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 cowplot            1.1.3      2024-01-22 [1] CRAN (R 4.4.0)
 crayon             1.5.3      2024-06-20 [1] CRAN (R 4.4.0)
 data.table         1.15.4     2024-03-30 [1] CRAN (R 4.4.0)
 deldir             2.0-4      2024-02-28 [1] CRAN (R 4.4.0)
 dendextend       * 1.17.1     2023-03-25 [1] CRAN (R 4.4.0)
 digest             0.6.36     2024-06-23 [1] CRAN (R 4.4.0)
 doParallel         1.0.17     2022-02-07 [1] CRAN (R 4.4.0)
 dotCall64          1.1-1      2023-11-28 [1] CRAN (R 4.4.0)
 dplyr            * 1.1.4      2023-11-17 [1] CRAN (R 4.4.0)
 fansi              1.0.6      2023-12-08 [1] CRAN (R 4.4.0)
 farver             2.1.2      2024-05-13 [1] CRAN (R 4.4.0)
 fastDummies        1.7.3      2023-07-06 [1] CRAN (R 4.4.0)
 fastmap            1.2.0      2024-05-15 [1] CRAN (R 4.4.0)
 fitdistrplus       1.2-1      2024-07-12 [1] CRAN (R 4.4.0)
 foreach            1.5.2      2022-02-02 [1] CRAN (R 4.4.0)
 future             1.34.0     2024-07-29 [1] CRAN (R 4.4.0)
 future.apply       1.11.2     2024-03-28 [1] CRAN (R 4.4.0)
 generics           0.1.3      2022-07-05 [1] CRAN (R 4.4.0)
 GetoptLong         1.0.5      2020-12-15 [1] CRAN (R 4.4.0)
 ggforce          * 0.4.2      2024-02-19 [1] CRAN (R 4.4.0)
 ggplot2          * 3.5.1      2024-04-23 [1] CRAN (R 4.4.0)
 ggrepel          * 0.9.5      2024-01-10 [1] CRAN (R 4.4.0)
 ggridges           0.5.6      2024-01-23 [1] CRAN (R 4.4.0)
 ggtext           * 0.1.2      2022-09-16 [1] CRAN (R 4.4.0)
 ggvenn           * 0.1.10     2023-03-31 [1] CRAN (R 4.4.0)
 GlobalOptions      0.1.2      2020-06-10 [1] CRAN (R 4.4.0)
 globals            0.16.3     2024-03-08 [1] CRAN (R 4.4.0)
 glue             * 1.7.0      2024-01-09 [1] CRAN (R 4.4.0)
 goftest            1.2-3      2021-10-07 [1] CRAN (R 4.4.0)
 gridExtra          2.3        2017-09-09 [1] CRAN (R 4.4.0)
 gridtext           0.1.5      2022-09-16 [1] CRAN (R 4.4.0)
 gtable             0.3.5      2024-04-22 [1] CRAN (R 4.4.0)
 hms                1.1.3      2023-03-21 [1] CRAN (R 4.4.0)
 htmltools          0.5.8.1    2024-04-04 [1] CRAN (R 4.4.0)
 htmlwidgets        1.6.4      2023-12-06 [1] CRAN (R 4.4.0)
 httpuv             1.6.15     2024-03-26 [1] CRAN (R 4.4.0)
 httr               1.4.7      2023-08-15 [1] CRAN (R 4.4.0)
 hues             * 0.2.0.9000 2024-07-23 [1] Github (johnbaums/hues@394ba28)
 ica                1.0-3      2022-07-08 [1] CRAN (R 4.4.0)
 igraph             2.0.3      2024-03-13 [1] CRAN (R 4.4.0)
 IRanges            2.38.1     2024-07-03 [1] Bioconductor 3.19 (R 4.4.1)
 irlba              2.3.5.1    2022-10-03 [1] CRAN (R 4.4.0)
 iterators          1.0.14     2022-02-05 [1] CRAN (R 4.4.0)
 jsonlite           1.8.8      2023-12-04 [1] CRAN (R 4.4.0)
 KernSmooth         2.23-24    2024-05-17 [1] CRAN (R 4.4.0)
 later              1.3.2      2023-12-06 [1] CRAN (R 4.4.0)
 lattice            0.22-6     2024-03-20 [1] CRAN (R 4.4.0)
 lazyeval           0.2.2      2019-03-15 [1] CRAN (R 4.4.0)
 leiden             0.4.3.1    2023-11-17 [1] CRAN (R 4.4.0)
 lifecycle          1.0.4      2023-11-07 [1] CRAN (R 4.4.0)
 listenv            0.9.1      2024-01-29 [1] CRAN (R 4.4.0)
 lmtest             0.9-40     2022-03-21 [1] CRAN (R 4.4.0)
 magrittr           2.0.3      2022-03-30 [1] CRAN (R 4.4.0)
 MASS               7.3-61     2024-06-13 [1] CRAN (R 4.4.0)
 Matrix             1.7-0      2024-03-22 [1] CRAN (R 4.4.0)
 matrixStats        1.3.0      2024-04-11 [1] CRAN (R 4.4.0)
 mime               0.12       2021-09-28 [1] CRAN (R 4.4.0)
 miniUI             0.1.1.1    2018-05-18 [1] CRAN (R 4.4.0)
 munsell            0.5.1      2024-04-01 [1] CRAN (R 4.4.0)
 nlme               3.1-165    2024-06-06 [1] CRAN (R 4.4.0)
 paletteer        * 1.6.0      2024-01-21 [1] CRAN (R 4.4.0)
 parallelly         1.38.0     2024-07-27 [1] CRAN (R 4.4.0)
 patchwork        * 1.2.0      2024-01-08 [1] CRAN (R 4.4.0)
 pbapply            1.7-2      2023-06-27 [1] CRAN (R 4.4.0)
 pillar             1.9.0      2023-03-22 [1] CRAN (R 4.4.0)
 pkgconfig          2.0.3      2019-09-22 [1] CRAN (R 4.4.0)
 plotly             4.10.4     2024-01-13 [1] CRAN (R 4.4.0)
 plyr               1.8.9      2023-10-02 [1] CRAN (R 4.4.0)
 png                0.1-8      2022-11-29 [1] CRAN (R 4.4.0)
 polyclip           1.10-7     2024-07-23 [1] CRAN (R 4.4.0)
 prismatic          1.1.2      2024-04-10 [1] CRAN (R 4.4.0)
 progressr          0.14.0     2023-08-10 [1] CRAN (R 4.4.0)
 promises           1.3.0      2024-04-05 [1] CRAN (R 4.4.0)
 purrr              1.0.2      2023-08-10 [1] CRAN (R 4.4.0)
 R6                 2.5.1      2021-08-19 [1] CRAN (R 4.4.0)
 RANN               2.6.1      2019-01-08 [1] CRAN (R 4.4.0)
 RColorBrewer       1.1-3      2022-04-03 [1] CRAN (R 4.4.0)
 Rcpp               1.0.13     2024-07-17 [1] CRAN (R 4.4.0)
 RcppAnnoy          0.0.22     2024-01-23 [1] CRAN (R 4.4.0)
 RcppHNSW           0.6.0      2024-02-04 [1] CRAN (R 4.4.0)
 readr            * 2.1.5      2024-01-10 [1] CRAN (R 4.4.0)
 rematch2           2.1.2      2020-05-01 [1] CRAN (R 4.4.0)
 reshape2           1.4.4      2020-04-09 [1] CRAN (R 4.4.0)
 reticulate         1.38.0     2024-06-19 [1] CRAN (R 4.4.0)
 rjson              0.2.21     2022-01-09 [1] CRAN (R 4.4.0)
 rlang              1.1.4      2024-06-04 [1] CRAN (R 4.4.0)
 ROCR               1.0-11     2020-05-02 [1] CRAN (R 4.4.0)
 RSpectra           0.16-2     2024-07-18 [1] CRAN (R 4.4.0)
 rstudioapi         0.16.0     2024-03-24 [1] CRAN (R 4.4.0)
 Rtsne              0.17       2023-12-07 [1] CRAN (R 4.4.0)
 S4Vectors          0.42.1     2024-07-03 [1] Bioconductor 3.19 (R 4.4.1)
 scales           * 1.3.0      2023-11-28 [1] CRAN (R 4.4.0)
 scattermore        1.2        2023-06-12 [1] CRAN (R 4.4.0)
 sctransform        0.4.1      2023-10-19 [1] CRAN (R 4.4.0)
 sessioninfo        1.2.2      2021-12-06 [1] CRAN (R 4.4.0)
 Seurat           * 5.1.0      2024-05-10 [1] CRAN (R 4.4.0)
 SeuratObject     * 5.0.2      2024-05-08 [1] CRAN (R 4.4.0)
 shape              1.4.6.1    2024-02-23 [1] CRAN (R 4.4.0)
 shiny              1.9.1      2024-08-01 [1] CRAN (R 4.4.0)
 sp               * 2.1-4      2024-04-30 [1] CRAN (R 4.4.0)
 spam               2.10-0     2023-10-23 [1] CRAN (R 4.4.0)
 spatstat.data      3.1-2      2024-06-21 [1] CRAN (R 4.4.0)
 spatstat.explore   3.3-1      2024-07-15 [1] CRAN (R 4.4.0)
 spatstat.geom      3.3-2      2024-07-15 [1] CRAN (R 4.4.0)
 spatstat.random    3.3-1      2024-07-15 [1] CRAN (R 4.4.0)
 spatstat.sparse    3.1-0      2024-06-21 [1] CRAN (R 4.4.0)
 spatstat.univar    3.0-0      2024-06-28 [1] CRAN (R 4.4.0)
 spatstat.utils     3.0-5      2024-06-17 [1] CRAN (R 4.4.0)
 stringi            1.8.4      2024-05-06 [1] CRAN (R 4.4.0)
 stringr            1.5.1      2023-11-14 [1] CRAN (R 4.4.0)
 survival           3.7-0      2024-06-05 [1] CRAN (R 4.4.0)
 tensor             1.5        2012-05-05 [1] CRAN (R 4.4.0)
 tibble             3.2.1      2023-03-20 [1] CRAN (R 4.4.0)
 tidyr              1.3.1      2024-01-24 [1] CRAN (R 4.4.0)
 tidyselect         1.2.1      2024-03-11 [1] CRAN (R 4.4.0)
 tweenr             2.0.3      2024-02-26 [1] CRAN (R 4.4.0)
 tzdb               0.4.0      2023-05-12 [1] CRAN (R 4.4.0)
 utf8               1.2.4      2023-10-22 [1] CRAN (R 4.4.0)
 uwot               0.2.2      2024-04-21 [1] CRAN (R 4.4.0)
 vctrs              0.6.5      2023-12-01 [1] CRAN (R 4.4.0)
 viridis            0.6.5      2024-01-29 [1] CRAN (R 4.4.0)
 viridisLite        0.4.2      2023-05-02 [1] CRAN (R 4.4.0)
 vroom              1.6.5      2023-12-05 [1] CRAN (R 4.4.0)
 withr              3.0.1      2024-07-31 [1] CRAN (R 4.4.0)
 xml2               1.3.6      2023-12-04 [1] CRAN (R 4.4.0)
 xtable             1.8-4      2019-04-21 [1] CRAN (R 4.4.0)
 zoo                1.8-12     2023-04-13 [1] CRAN (R 4.4.0)

 [1] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants