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

crashing whilst addinslist is updating #123

Closed
scbrown86 opened this issue Mar 29, 2021 · 4 comments
Closed

crashing whilst addinslist is updating #123

scbrown86 opened this issue Mar 29, 2021 · 4 comments

Comments

@scbrown86
Copy link

scbrown86 commented Mar 29, 2021

This is crashing whilst trying to update the list of rstudio addins. See below. Selecting the addin from the Rstudio addins menu shows the exact same behaviour. The problem is there whether I use the version on cran (install.packages('addinslist')), or installing from github (devtools::install_github('daattali/addinslist'))

> addinslist:::addinslistAddin()
Loading required package: shiny
Warning: package ‘shiny’ was built under R version 4.0.4

Listening on http://127.0.0.1:3023
Warning: Error in <-: number of items to replace is not a multiple of replacement length
  54: update_addins_list_helper
  53: update_addins_list
  52: update_addins_list_values
  51: <Anonymous>
  49: server
Error in out[i, ] <- values : 
  number of items to replace is not a multiple of replacement length

Here's the session info

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                      
[5] LC_TIME=English_Australia.1252    

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

other attached packages:
[1] shiny_1.6.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        rstudioapi_0.13   xml2_1.3.2        magrittr_2.0.1    rappdirs_0.3.3    rvest_0.3.6       xtable_1.8-4      R6_2.5.0         
 [9] rlang_0.4.10      fastmap_1.0.1     httr_1.4.2        tools_4.0.3       addinslist_0.4.0  DT_0.17           miniUI_0.1.1.1    jquerylib_0.1.3  
[17] htmltools_0.5.1.1 crosstalk_1.1.1   shinyjs_2.0.0     ellipsis_0.3.1    yaml_2.2.1        digest_0.6.27     lifecycle_0.2.0   crayon_1.3.4     
[25] later_1.1.0.1     sass_0.3.1        htmlwidgets_1.5.3 promises_1.1.1    cachem_1.0.3      mime_0.9          compiler_4.0.3    bslib_0.2.4      
[33] jsonlite_1.7.2    httpuv_1.5.4   
@daattali
Copy link
Owner

Hm I'm not abe to reproduce. If you have access to another machine, are you able to reproduce this error on a different machine?

@jeam-github
Copy link

Looks like I have a similar problem. I've installed and am trying to use the addinslist addin within RStudio but encounter an error on selecting addinslist from the Addins menu in RStudio:
Loading required package: shiny

Listening on http://127.0.0.1:6507
pandoc: ~/Library/Application Support/addinsrepo/addins.md: openBinaryFile: does not exist (No such file or directory)
Warning: Error in : pandoc document conversion failed with error 1
  57: stop
  56: rmarkdown::pandoc_convert
  55: update_addins_file
  54: update_addins_list
  53: update_addins_list_values
  52: refresh_list
  51:
  49: server
Error : pandoc document conversion failed with error 1

This suggests to me that the markup file being produced cannot be found by pandoc. I can see what I think is the generated markup file in question at:
/Users/jim/Library/Application Support/addinsrepo/addins.md  

If my assumption above is correct, how do I go about fixing this so that pandoc finds the file to display?

@daattali
Copy link
Owner

@jeam-github your error seems very different so I opened a separate issue for it.

@daattali
Copy link
Owner

Closing due to no response from original reporter

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

3 participants