Comments (7)
Working on this now.
Can you run ls -lah /usr/lib/rstudio/
for me? Can you also provide the full path to the index.htm
file on your machine? On macOS and Windows, the file is in a folder named www
; /Applications/RStudio.app/Contents/Resources/www/index.htm
and C:\\Program Files\\RStudio\\www\\index.htm
, respectively. I assume Linux is setup similarly, but I'm not positive.
PS: The name actually came from a Redditor who said that I missed the chance to name it darkstudio. Originally the project didn't really have a name, and was just "RStudio-Customizations" (which goes to show how creative I am).
from darkstudio.
Hey @salim-b! I'm sorry about the Linux installation method being broken... I don't have a way to test for Linux, and I figured if anything was wrong, someone would raise an issue and I'd work with them to make the necessary adjustments.
I looked for documentation about the default installation path for Linux but didn't find anything concrete. Do you have a source for /usr/lib/rstudio
being the default installation path for Debian-based distros? If not, I'll just take your word on it and update the package accordingly.
Regarding rscodeio, much of the inspiration for the finer details of darkstudio came from that package. For awhile I didn't bother with scrollbars, buttons, etc. because I couldn't find a way to theme those elements consistently and stably(sp?), but anthonynorth's code made it look trivial. It's nice work.
I'll admit that the installation and de/activation is not so great. This is my first "real"(ish) R package, and was put together quickly in an attempt to get something working. Most of my attention so far has been focused on the activation and making that process simple and smooth, but I do intend to make some changes to the deactivation function and making that more reliable.
And yes, that would make sense. I've thought about reaching out but just haven't gotten around to it yet 😅 .
from darkstudio.
(...) and I figured if anything was wrong, someone would raise an issue and I'd work with them to make the necessary adjustments. (...)
Sure, here we go... 😄
Do you have a source for
/usr/lib/rstudio
being the default installation path for Debian-based distros?
I don't know about any documentation about this from RStudio's side, but you can easily determine that path on any Debian-based distro by running dpkg -c
on the downloaded DEB file. The command lists all the files in the package:
$ dpkg -c rstudio-1.3.959-amd64.deb
drwxr-xr-x root/root 0 2020-05-18 21:18 ./
drwxr-xr-x root/root 0 2020-05-18 21:17 ./usr/
drwxr-xr-x root/root 0 2020-05-18 21:17 ./usr/lib/
drwxr-xr-x root/root 0 2020-05-18 21:17 ./usr/lib/rstudio/
-rw-r--r-- root/root 35057 2020-05-18 20:37 ./usr/lib/rstudio/COPYING
-rw-r--r-- root/root 6124 2020-05-18 20:37 ./usr/lib/rstudio/INSTALL
-rw-r--r-- root/root 177648 2020-05-18 20:37 ./usr/lib/rstudio/NOTICE
drwxr-xr-x root/root 0 2020-05-18 21:17 ./usr/lib/rstudio/R/
...
For the RPM packages (Fedora, RHEL, SUSE Linux) it's the same path, I've just checked the RPM packages of the same RStudio release.
And yes, that would make sense. I've thought about reaching out but just haven't gotten around to it yet 😅 .
Cool! The rscodeio theme seems to only work with the shipped rscodeio
editor theme (at least in current RStudio versions), so there's still room for improvement...
And your package definitively has a more catchy name. 😜
from darkstudio.
Can you run
ls -lah /usr/lib/rstudio/
for me?
$ ls -lah /usr/lib/rstudio/
total 304K
drwxr-xr-x 11 root root 4.0K Jun 29 23:49 .
drwxr-xr-x 148 root root 12K Jun 26 20:05 ..
drwxr-xr-x 4 root root 4.0K Jun 29 23:49 bin
-rw-r--r-- 1 root root 35K Jun 27 00:02 COPYING
-rw-r--r-- 1 root root 6.0K Jun 27 00:02 INSTALL
drwxr-xr-x 2 root root 4.0K Jun 29 23:49 lib
drwxr-xr-x 2 root root 4.0K Jun 29 23:49 libexec
-rw-r--r-- 1 root root 188K Jun 27 00:02 NOTICE
drwxr-xr-x 9 root root 4.0K Mai 16 15:01 plugins
drwxr-xr-x 3 root root 4.0K Jun 29 23:49 R
-rw-r--r-- 1 root root 2.1K Jun 27 00:02 README.md
drwxr-xr-x 18 root root 4.0K Jun 29 23:49 resources
-rw-r--r-- 1 root root 4.1K Jun 27 00:02 rstudio.png
-rw-r--r-- 1 root root 495 Jun 27 00:47 SOURCE
drwxr-xr-x 3 root root 4.0K Jun 29 23:49 translations
-rw-r--r-- 1 root root 9 Jun 27 00:03 VERSION
drwxr-xr-x 10 root root 4.0K Jun 29 23:49 www
drwxr-xr-x 2 root root 4.0K Jun 29 23:49 www-symbolmaps
Can you also provide the full path to the
index.htm
file on your machine? On macOS and Windows, the file is in a folder namedwww
;
It's the same on Linux. Full path:
/usr/lib/rstudio/www/index.htm
from darkstudio.
Over two years later, the problem persists. I was wondering if there has been (or if there is any chance there will be) any development on this front.
from darkstudio.
@pablillocea I just updated the Linux paths in index.R.
Line 29 in ffbf068
Can you try to reinstall the package and let me know if you run into any issues?
from darkstudio.
Thanks for the reply!
I uninstalled the packaged, installed it again, run the command and same error: Error in dirname(path) : a character vector argument expected
.
I'm on Arch and Fedora. Neither worked. At least the Arch package I know it's based on the apt version, so if you based it of off Ubuntu/Debian, then it should have worked.
from darkstudio.
Related Issues (20)
- Document elements in`darkstudio.css`
- Add Install Option to Customize UI Fonts
- Style help pane HOT 6
- Style remaining elements HOT 6
- Can't activate on macOS Catalina HOT 2
- No change of theme despite successful activation (macOS) HOT 7
- Rstudio via Anaconda: activation issue HOT 2
- not working on linux. Could anyone fix it? HOT 3
- Cannot be activated on the latest R version HOT 11
- Title and menu bar color on windows HOT 3
- Styling of operators HOT 1
- New RStudio Version (2022.07.0) Breaks --ds-tab-gradient-dark on MacOS HOT 2
- New RStudio version (2022.07.1 ) breaks --ds-tab-gradient-light
- Data View requires new work around HOT 1
- Error on new Rstudio version (2022.12.0+353) HOT 1
- Error with new RStudio version 2022.12.0 - IDE still blue when daRkstudio is activated HOT 4
- Where to manually add files on macOS HOT 12
- Invert plot color for a more consistent dark mode experience
- Error when activating darkstudio on Mac HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkstudio.