anthonynorth / rscodeio

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

Error in get_stylesheets_location() : Could not find location of your RStudio installation. #57

Open JannisZeller opened 1 year ago

JannisZeller commented 1 year ago

Hello everybody! When trying to initially install the theme using rscodeio::install_theme() I get the following error message:

Error in get_stylesheets_location() :    Could not find location of your RStudio installation.

I remember that I once had a similar problem, but I can not recall it properly. Anybody has a solution? I installed Rstudio in the default location...

Keep up the good work, I love the theme!

wvictor14 commented 1 year ago

+1 I'm on windows with r 4.2.3

> rscodeio::install_theme()
Error in get_stylesheets_location() : 
  Could not find location of your RStudio installation.
> sessionInfo()
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.utf8  LC_CTYPE=English_Canada.utf8   
[3] LC_MONETARY=English_Canada.utf8 LC_NUMERIC=C                   
[5] LC_TIME=English_Canada.utf8    

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

other attached packages:
[1] OSUICode_0.0.0.9002

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10      digest_0.6.31    later_1.3.1      mime_0.12       
 [5] R6_2.5.1         lifecycle_1.0.3  xtable_1.8-4     magrittr_2.0.3  
 [9] stringi_1.7.12   rlang_1.1.1      cli_3.6.1        curl_5.0.0      
[13] renv_0.17.3      fs_1.6.2         remotes_2.4.2    rstudioapi_0.14 
[17] promises_1.2.0.1 rscodeio_0.1.0   ellipsis_0.3.2   tools_4.2.3     
[21] stringr_1.5.0    glue_1.6.2       shiny_1.7.4      httpuv_1.6.9    
[25] fastmap_1.1.1    compiler_4.2.3   htmltools_0.5.5 
alexk22-dev commented 1 year ago

I also got this error:

Error in get_stylesheets_location() : Could not find location of your RStudio installation.

vivek-verma202 commented 1 year ago

I got the same error too, RStudio 2023.06.0 Build 421, R v4.2.2, and Windows 10 Enterprise for Virtual Desktops v22H2.

Andy-Jiang-483 commented 1 year ago

Same. And I don't think I can manually specify the path.

Skumin commented 1 year ago

Doesn't directly solve the issue, but I've been able to manually change the theme using the RStudio UI in Tools -> Global Options -> Appearance -> Editor Theme and selecting "rscodeio".

JannisZeller commented 1 year ago

Doesn't directly solve the issue, but I've been able to manually change the theme using the RStudio UI in Tools -> Global Options -> Appearance -> Editor Theme and selecting "rscodeio".

Thank you for this; did the trick for me. I did not notice, that the theme becomes available there as well.

KraftRicardo commented 11 months ago

I got the same issue of the command not working. The fix suggested by @Skumin helped!

cloudy-sfu commented 8 months ago

Doesn't directly solve the issue, but I've been able to manually change the theme using the RStudio UI in Tools -> Global Options -> Appearance -> Editor Theme and selecting "rscodeio".

Same problem. This method works.