anthonynorth / rscodeio

An RStudio theme inspired by Visual Studio Code.
Other
407 stars 65 forks source link

Installation error #19

Closed pembletonc closed 5 years ago

pembletonc commented 5 years ago

Hello, getting this error on installation, same as issue #3

This is on a work computer, but I still have admin rights so not sure the difference.

rscodeio::install_theme()
Error in 1:bin_ind : argument of length 0
 devtools::session_info()
- Session info --------------------------------------------------------------------------
 setting  value                       
 version  R version 3.6.0 (2019-04-26)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_Canada.1252         
 ctype    English_Canada.1252         
 tz       America/New_York            
 date     2019-07-15                  

- Packages ------------------------------------------------------------------------------
 package     * version date       lib source                                
 assertthat    0.2.1   2019-03-21 [1] CRAN (R 3.6.0)                        
 backports     1.1.4   2019-04-10 [1] CRAN (R 3.6.0)                        
 callr         3.2.0   2019-03-15 [1] CRAN (R 3.6.0)                        
 cli           1.1.0   2019-03-19 [1] CRAN (R 3.6.0)                        
 crayon        1.3.4   2017-09-16 [1] CRAN (R 3.6.0)                        
 curl          3.3     2019-01-10 [1] CRAN (R 3.6.0)                        
 desc          1.2.0   2018-05-01 [1] CRAN (R 3.6.0)                        
 devtools      2.1.0   2019-07-06 [1] CRAN (R 3.6.1)                        
 digest        0.6.20  2019-07-04 [1] CRAN (R 3.6.1)                        
 fs            1.3.1   2019-05-06 [1] CRAN (R 3.6.0)                        
 glue          1.3.1   2019-03-12 [1] CRAN (R 3.6.0)                        
 magrittr      1.5     2014-11-22 [1] CRAN (R 3.6.0)                        
 memoise       1.1.0   2017-04-21 [1] CRAN (R 3.6.0)                        
 pkgbuild      1.0.3   2019-03-20 [1] CRAN (R 3.6.1)                        
 pkgload       1.0.2   2018-10-29 [1] CRAN (R 3.5.2)                        
 prettyunits   1.0.2   2015-07-13 [1] CRAN (R 3.5.2)                        
 processx      3.3.0   2019-03-10 [1] CRAN (R 3.5.3)                        
 ps            1.3.0   2018-12-21 [1] CRAN (R 3.5.2)                        
 R6            2.4.0   2019-02-14 [1] CRAN (R 3.5.2)                        
 Rcpp          1.0.1   2019-03-17 [1] CRAN (R 3.5.3)                        
 remotes       2.1.0   2019-06-24 [1] CRAN (R 3.6.1)                        
 rlang         0.3.4   2019-04-07 [1] CRAN (R 3.5.3)                        
 rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.5.2)                        
 rscodeio      0.0.1   2019-07-15 [1] Github (anthonynorth/rscodeio@c3ad6dd)
 rstudioapi    0.10    2019-03-19 [1] CRAN (R 3.6.0)                        
 sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.5.2)                        
 testthat      2.1.1   2019-04-23 [1] CRAN (R 3.6.1)                        
 usethis       1.5.1   2019-07-04 [1] CRAN (R 3.6.1)                        
 withr         2.1.2   2018-03-15 [1] CRAN (R 3.5.2)                        

[1] C:/Users/finan/Documents/R/win-library/3.6
[2] C:/Program Files/R/R-3.6.0/library
MilesMcBain commented 5 years ago

Thanks for reporting this. It's happening because the hack we had to deploy to find your RStudio installation is failing. Would you mind sharing the output of:

Sys.getenv()[grepl("RSTUDIO", names(Sys.getenv()))]

?

You can remove anything that's not a path. We're using the location of the RStudio pandoc binary in RSTUDIO_PANDOC to deduce the RStudio install path.

pembletonc commented 5 years ago

Hi Miles, sure here's what it brings up:

> Sys.getenv()[grepl("RSTUDIO", names(Sys.getenv()))]

RSTUDIO_MSYS_SSH
            C:/Program
            Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC
            C:/Users/finan/Documents/rstudio-pandoc

RSTUDIO_WINUTILS
            C:/Program
            Files/RStudio/bin/winutils
MilesMcBain commented 5 years ago

Thanks! Interesting, So did you install an updated version of pandoc?

I think we'll need to use a couple of them in a fallback type thing.

pembletonc commented 5 years ago

Just a note that I do have pandoc installed and I get the same error - how can I resolve it?

MilesMcBain commented 5 years ago

@pembletonc do you have the latest rscodeio master installed? I used your environment as a test case and it worked here, I also changed the way error handling works so the message should be different at least. Try reinstalling from master and let us know if the error persists.