To summarise the current situation:
Apart from the above issues, I like your work very much! I've manually copied the last version of index.htm in the repo and the current version of darkstudio.css to /usr/lib/rstudio/www/ and it works fine! 👍🏽
To resolve the problems mentioned above, I'd recommend to have a look at the rscodeio theme. It seems it's enough to run RStudio with root privileges to be able to install the theme (although your darkstudio::activate() function still didn't work that way when I tried it; IIRC because it tries to copy a file to a folder which doesn't exist; rscodeio's (de)activate_menu_theme functions seem to do a better job in this regard).
And anyway, I think it would make a lot of sense to join forces with the developer(s) of rscodeio since the two packages basically share the same goal: Copying some files to RStudio's installation directory with as little user interaction as possible 😉.
To summarise the current situation:
The recommended installation method is broken, at least on Linux. This is because (on almost any contemporary distro) you need system rights in order to modify files under RStudio's default installation path.
The old installation method is broken, too. This is mainly because you removed the referenced files in 84d0303.
Besides, the destination paths for Linux are wrong (as long as RStudio is installed through one of the official Linux packages). At least on Debian-based distros (and I think it's the same for Fedora/RHEL, SUSE and Co.) it's
/usr/lib/rstudio/, without a version number.Apart from the above issues, I like your work very much! I've manually copied the last version of
index.htmin the repo and the current version ofdarkstudio.cssto/usr/lib/rstudio/www/and it works fine! 👍🏽To resolve the problems mentioned above, I'd recommend to have a look at the rscodeio theme. It seems it's enough to run RStudio with root privileges to be able to install the theme (although your
darkstudio::activate()function still didn't work that way when I tried it; IIRC because it tries to copy a file to a folder which doesn't exist; rscodeio's(de)activate_menu_themefunctions seem to do a better job in this regard).And anyway, I think it would make a lot of sense to join forces with the developer(s) of rscodeio since the two packages basically share the same goal: Copying some files to RStudio's installation directory with as little user interaction as possible 😉.