Git Product home page Git Product logo

rscodeio's Introduction

cran release lifecycle

rscodeio

An RStudio theme inspired by Visual Studio Code.

Prerequisites

RStudio 1.2.x or higher.

Installation

Get the package:

remotes::install_github("anthonynorth/rscodeio")

rscodeio modifies the theme of RStudio menus. These are not exposed by the current theming API and so this is achieved by modifying style sheets in the RStudio installation. To modify files in this area will likely require the installation to be run with administrator privileges. To do this:

  • On Windows start RStudio by right clicking on a shortcut or menu icon and selecting 'Run as Administrator'
  • On Linux start RStudio in a terminal using sudo rstudio --no-sandbox
  • On Mac this is not required. Theming the menus is not supported.
    • They're inherited from OS so might want to use your dark OS theme.

From within RStudio running as administrator, run this command to install and apply the theme:

rscodeio::install_theme()

And close RStudio. Reopen it in the normal way and the theme should be fully applied.

Once installed it can also be selected using the RStudio theme picker in the usual way.

Recommended RStudio settings

For best results, make sure the following settings are enabled:

  • ToolsGlobal Options…CodeDisplay☑ Highlight selected line
  • ToolsGlobal Options…CodeDisplay☑ Show indent guides
  • ToolsGlobal Options…CodeDisplay☑ Show syntax highlighting in console input
  • ToolsGlobal Options…CodeDisplay☑ Highlight R function calls

Switching to another theme

rscodeio modifies UI elements that are not part of standard theming. This means the RStudio file menus will remain dark even if you switch to another theme. To revert them, within an RStudio session run as administrator, use: rscodeio::deactivate_menu_theme. Reactivate again with: rscodeio::activate_menu_theme.

Supported Platforms

rscodeio has only been tested on Windows and Pop!_OS Linux so far. Feedback from other platforms welcome.

rscodeio's People

Contributors

anthonynorth avatar milesmcbain avatar salim-b avatar

Watchers

 avatar

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.