darkstudio icon indicating copy to clipboard operation
darkstudio copied to clipboard

Cannot be activated on the latest R version

Open dreadbalaur opened this issue 3 years ago • 2 comments

RStudio version: 2021.09.0+351 R version: 4.1.1 OS: Windows 10 21H1 Ran in admin? Yes

Issue: Error encountered when trying to activate using darkstudio::activate()

Error message: Error in dirname(path) : a character vector argument expected

dreadbalaur avatar Oct 08 '21 08:10 dreadbalaur

Are you able to try again with R version 4.1.2? Using 4.1.2, I don't get the error and am able to activate/deactivate successfully.

rileytwo avatar Nov 23 '21 17:11 rileytwo

Same issue still persists on R version 4.2.1, windows, same setting.

BraINstinct0 avatar Jul 11 '22 01:07 BraINstinct0

I am using R v4.1.2 and I have this same error. MacOS using Rstudio 2022.12.0+353 (2022.12.0+353)

jmonroynieto avatar Dec 16 '22 20:12 jmonroynieto

I think I've figured out the issue for Windows. @BraINstinct0 and @dreadbalaur can you update darkstudio and try one more time?

rileytwo avatar Dec 22 '22 21:12 rileytwo

Hi! I really love this package and I found a solution that at least worked for me! =) you see, the troubleshooting says it requires a path, this path is for index.htm and as it says on help page of "darkstudio" package, when you're not setting R Studio installation on default path, like me that I setted on the D:/, you have to provide the access route to your index.htm, highlight on index route and not the directory (understood that looking for the trouble of dir path on Google)... anyways, for me, that I have it on D:/ you must run the following:

darkstudio::activate(path= "D:/Program Files/RStudio/resources/app/www/index.htm")

Hope it fix your problem too and thanks riley for this beautiful package =)

neilrq avatar Jan 05 '23 17:01 neilrq

Yes, the same works for me on Mac, R v4.2.2 on RStudio 2022.12.0+353. Had to define the path to /Applications/RStudio.app/Contents/Resources/app/www/index.htm

Works perfectly, thanks Neil!

MichaelJStein avatar Jan 19 '23 08:01 MichaelJStein

darkstudio::activate(path= "D:/Program Files/RStudio/resources/app/www/index.htm") Hope it fix your problem too and thanks riley for this beautiful package =)

Thanks for posting your solution. Once I find some time I'll update the default paths.

rileytwo avatar Feb 22 '23 17:02 rileytwo

darkstudio::activate(path= "D:/Program Files/RStudio/resources/app/www/index.htm")

Same issue here @rileytwo Any update will be greatly appreciated (I love this theme!)

Having an issue activating the theme. Windows 11, RStudio 2021.09.0 Build 351 .

Bruno0588 avatar Mar 07 '23 02:03 Bruno0588

Hi, Mac user here and using the pathname by @MichaelJStein didn't work for me. RStudio 2023.03.1+446

Edit: FIXED. For novice RStudio users, this might not be that obvious. When doing darkstudio::activate(), make sure the directory in path = is in speech marks ""

So this is what you should write in console: darkstudio::activate("/Applications/RStudio.app/Contents/Resources/app/www/index.htm")

fmaj0003 avatar May 16 '23 04:05 fmaj0003

Hi @fmaj0003, do you mean darkstudio::activate("/Applications/RStudio.app/Contents/Resources/app/www/index.htm")? (With quotes?)

But yes, thanks for posting a solution.

rileytwo avatar May 27 '23 19:05 rileytwo

Seems I didn't have an updated version of RStudio when looking into this issue. The path has been fixed and is working on my mac. Please reopen if anyone is still experiencing the issue.

rileytwo avatar Aug 19 '23 21:08 rileytwo