jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 125 forks source link

Some package environments not shown in Object Browser #770

Closed iago-pssjd closed 1 year ago

iago-pssjd commented 1 year ago

Hi!

For most of packages, I can see its environments in object browser. For example, for cluster: [1]

However, when I try other packages as parallel (also methods, utils, grDevices, graphics, stats and base), when I press return over it, nothing is displayed ([2]), while

> ls(pos = "package:parallel")
 [1] "clusterApply"        "clusterApplyLB"      "clusterCall"         "clusterEvalQ"        "clusterExport"       "clusterMap"          "clusterSetRNGStream"
 [8] "clusterSplit"        "detectCores"         "getDefaultCluster"   "makeCluster"         "makeForkCluster"     "makePSOCKcluster"    "mclapply"           
[15] "mcMap"               "mcmapply"            "nextRNGStream"       "nextRNGSubStream"    "parApply"            "parCapply"           "parLapply"          
[22] "parLapplyLB"         "parRapply"           "parSapply"           "parSapplyLB"         "pvec"                "setDefaultCluster"   "splitIndices"       
[29] "stopCluster"        
>

and RStudio also shows a non-empty environment: [3]

[1] brows

[2] Sin título

[3] Sin título

> sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Spain.utf8  LC_CTYPE=Spanish_Spain.utf8    LC_MONETARY=Spanish_Spain.utf8 LC_NUMERIC=C                   LC_TIME=Spanish_Spain.utf8    

time zone: Europe/Madrid
tzcode source: internal

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

other attached packages:
 [1] doRNG_1.8.6       rngtools_1.5.2    doParallel_1.0.17 iterators_1.0.14  foreach_1.5.2     FactoMineR_2.9    mclust_6.0.0      apcluster_1.4.11  fpc_2.2-10       
[10] cluster_2.1.4     data.table_1.14.9 ggrepel_0.9.4     factoextra_1.0.7  ggplot2_3.4.4     pander_0.6.5      knitr_1.45        nvimcom_0.9-146  

loaded via a namespace (and not attached):
 [1] utf8_1.2.4           generics_0.1.3       class_7.3-22         robustbase_0.99-0    lattice_0.22-5       digest_0.6.33        magrittr_2.0.3       grid_4.3.1          
 [9] estimability_1.4.1   fastmap_1.1.1        mvtnorm_1.2-3        Matrix_1.6-1.1       nnet_7.3-19          fansi_1.0.5          kernlab_0.9-32       scales_1.2.1        
[17] codetools_0.2-19     modeltools_0.2-23    cli_3.6.1            rlang_1.1.2          scatterplot3d_0.3-44 munsell_0.5.0        leaps_3.1            withr_2.5.2         
[25] multcompView_0.1-9   tools_4.3.1          flexmix_2.3-19       coda_0.19-4          dplyr_1.1.3          colorspace_2.1-0     DT_0.30              flashClust_1.01-2   
[33] vctrs_0.6.4          R6_2.5.1             stats4_4.3.1         lifecycle_1.0.3      emmeans_1.8.9        htmlwidgets_1.6.2    MASS_7.3-60          pkgconfig_2.0.3     
[41] pillar_1.9.0         gtable_0.3.4         glue_1.6.2           Rcpp_1.0.11          DEoptimR_1.1-3       xfun_0.41            tibble_3.2.1         tidyselect_1.2.0    
[49] prabclus_2.3-3       xtable_1.8-4         htmltools_0.5.7      compiler_4.3.1       diptest_0.76-0      
jalvesaq commented 1 year ago

I'm sorry, but I can't replicate the issue on Linux and I no longer have access to any Windows machine. You could delete the Nvim-R cache directory to see if all necessary files are regenerated (type :echo $NVIMR_COMPLDIR to get the directory's path).

iago-pssjd commented 1 year ago

Indeed, I am also not able to reproduce it on Linux... Let's see next time on Windows...

Thanks!

jalvesaq commented 1 year ago

Please, see https://github.com/jalvesaq/Nvim-R/issues/775

iago-pssjd commented 1 year ago

@jalvesaq thanks for the info. I have an older version installed. I hope it does not update automatically.