Coder Social home page Coder Social logo

Comments (7)

rileytwo avatar rileytwo commented on June 1, 2024 1

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.

rileytwo avatar rileytwo commented on June 1, 2024

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.

salim-b avatar salim-b commented on June 1, 2024

(...) 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.

salim-b avatar salim-b commented on June 1, 2024

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 named www;

It's the same on Linux. Full path:

/usr/lib/rstudio/www/index.htm

from darkstudio.

pablillocea avatar pablillocea commented on June 1, 2024

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.

rileytwo avatar rileytwo commented on June 1, 2024

@pablillocea I just updated the Linux paths in index.R.

# RR: `lib`, not `local`, for Linux common distros. #13`

Can you try to reinstall the package and let me know if you run into any issues?

from darkstudio.

pablillocea avatar pablillocea commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.