rscodeio icon indicating copy to clipboard operation
rscodeio copied to clipboard

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

Open JannisZeller opened this issue 2 years ago • 9 comments

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!

JannisZeller avatar Apr 08 '23 07:04 JannisZeller

+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 

wvictor14 avatar May 07 '23 16:05 wvictor14

I also got this error:

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

alexk22-dev avatar Jun 07 '23 15:06 alexk22-dev

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

vivek-verma202 avatar Jul 13 '23 18:07 vivek-verma202

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

Andy-Jiang-483 avatar Aug 27 '23 09:08 Andy-Jiang-483

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".

Skumin avatar Sep 06 '23 07:09 Skumin

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.

JannisZeller avatar Sep 06 '23 08:09 JannisZeller

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

KraftRicardo avatar Oct 17 '23 10:10 KraftRicardo

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.

cloudy-sfu avatar Dec 31 '23 01:12 cloudy-sfu