Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
boB Rudis c86d57f564
3 місяці тому
R reachable 4 місяці тому
inst tt 3 місяці тому
man reachable 4 місяці тому
tests R package repo initialization complete 4 місяці тому
.Rbuildignore initial commit 4 місяці тому
.codecov.yml R package repo initialization complete 4 місяці тому
.gitignore R package repo initialization complete 4 місяці тому
.travis.yml R package repo initialization complete 4 місяці тому
CONDUCT.md R package repo initialization complete 4 місяці тому
DESCRIPTION applescript 4 місяці тому
LICENSE initial commit 4 місяці тому
LICENSE.md initial commit 4 місяці тому
NAMESPACE reachable 4 місяці тому
NEWS.md R package repo initialization complete 4 місяці тому
README.Rmd addin 4 місяці тому
README.md reachable 4 місяці тому
bitbar.Rproj R package repo initialization complete 4 місяці тому


Signedby Linux buildStatus
Minimal RVersion License


Craft macOS Menu Bar Applications with Rscript


Mat Ryer’s macOS utility https://getbitbar.com/ enables any script to become a menu bar application. Tools are provided to make it easier to craft these scripts.

Installing BitBar

If you have homebrew installed, you can do:

brew cask install bitbar

Otherwise grab the latest release and install it the hard way.

Open the application and choose the directory you want to be your plugins directory. This is where your menubar scripts will go. (I use ~/Library/BitBar/Plugins but you can pick any directory; just make sure it isn’t one with a gazillion files as that impacts BitBar’s performance).

What’s Inside The Tin

The following functions are implemented:

  • add_entry: Add an entry to the menu
  • applescript: Execute AppleScript and Return Results
  • b64_image: Return a base64 encoded string of an image (local filesystem or URL)
  • bitbar_plugins_dir: BitBar plugins directory
  • new_bitbar_script: Helper to get started with a new BitBar bitbar script
  • open_bitbar_dir: Open BitBar Plugins Directory in the Finder
  • r_logo_small: Images that come with the package
  • reachable: Is the internet accessible?

There are also two RStudio Addins, one with a GUI for entering in the script metadata & starting a new BitBar {bitbar} script and one for opening up the BitBar plugins directory in the Finder.


# or
# or
# or
# or

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.



# current version
## [1] '0.1.0'

This will open up a my-awesome-bitbar-script.R in RStudio (if available) or whatever editor file.edit() is configured to use.

  save_as = file.path(bitbar_plugins_dir(), "my-awesome-bitbar-script.R"),
  title = ":blue_heart:",
  description = "Example BitBar Script"

bitbar Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 12 0.92 221 0.94 63 0.73 122 0.75
Rmd 1 0.08 13 0.06 23 0.27 41 0.25

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.