/R-BBEdit

BBEdit package for working with R files

Primary LanguageMakefileMIT LicenseMIT

BBEdit package to make handling R easier

This BBedit package is work in progress and can / will change without notice!

I take no responsibility of what ever kind that these scripts will not do any horrible things!

This package for BBEdit is trying to re-create regularly used shortcuts in RStudio. It is work in progress, so please file issues and let me know if you have any additional actions ytou would like to have included.

I am no BBEdit wizard, but I will look into them.

It is based on a makefile which is located in the directory of the R project. For each command in the Package section, one make target is required.

Contents:

Scripts:
	R:
		10)  ⌘⏎ - Quick Paste to R (Run selection or line).scpt
		11) ⇧⌘S - Source File.scpt
		12) ⇧⌘⏎ - Source File with echo.scpt
		13) ⇧⌘P - Knit and preview.sh
		14) ⇧⌘K - Knit.sh		
		Package
			15) ⇧⌘B - Build Package.sh
			15) ⇧⌘D - Document Package.sh
			16) ⇧⌘E - Check Package.sh
			16) ⇧⌘I - Install Package.sh
			16) ⇧⌘T - Test Package.sh

The shortcuts at the beginning are the keyboard shortcuts in RStudio. They are not assigned automatically.

Other stuff can (will?) follow.

Installation

  1. clone the repo by using
git clone https://github.com/rkrug/R-BBEdit.git
  1. Double click on the package R.bbpackage or drag it into BBEdit and it will install. The keyboard shortcuts still need to be assigned manually in the BBEdit Menus & Shortcut Preferences.

Acknowledgements

The Apple Scripts Quick Paste to R.scpt, Paste to R.scpt, Source File in R - echo FALSE.scpt and 18)R) Source File in R - echo TRUE.scpt are from Jonathan Marc Bearak and I simply removed the Stata code.