~hrbrmstr/QuickLookR

658c620fc2b4363e55135272e9d6cc7b95ee78a4 — boB Rudis 1 year, 1 month ago 7da7beb master
previews
M QuickLookR.xcodeproj/project.pbxproj => QuickLookR.xcodeproj/project.pbxproj +1 -3
@@ 10,7 10,7 @@
		C4291BEF1D552859001238D2 /* GenerateThumbnailForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = C4291BEE1D552859001238D2 /* GenerateThumbnailForURL.m */; };
		C4291BF11D552859001238D2 /* GeneratePreviewForURL.m in Sources */ = {isa = PBXBuildFile; fileRef = C4291BF01D552859001238D2 /* GeneratePreviewForURL.m */; };
		C4291BF31D552859001238D2 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = C4291BF21D552859001238D2 /* main.c */; };
		C4291BFB1D552C7A001238D2 /* QuickLookR.qlgenerator in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4291BEB1D552859001238D2 /* QuickLookR.qlgenerator */; };
		C4291BFB1D552C7A001238D2 /* QuickLookR.qlgenerator in CopyFiles */ = {isa = PBXBuildFile; fileRef = C4291BEB1D552859001238D2 /* QuickLookR.qlgenerator */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */


@@ 275,7 275,6 @@
				COMBINE_HIDPI_IMAGES = YES;
				DEVELOPMENT_TEAM = CBY22P58G8;
				INFOPLIST_FILE = QuickLookR/Info.plist;
				INSTALL_PATH = "~/Library/QuickLook";
				LIBRARY_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/QuickLookR",


@@ 295,7 294,6 @@
				COMBINE_HIDPI_IMAGES = YES;
				DEVELOPMENT_TEAM = CBY22P58G8;
				INFOPLIST_FILE = QuickLookR/Info.plist;
				INSTALL_PATH = "~/Library/QuickLook";
				LIBRARY_SEARCH_PATHS = (
					"$(inherited)",
					"$(PROJECT_DIR)/QuickLookR",

M README.md => README.md +9 -1
@@ 1,7 1,15 @@
This is a macOS QuickLook Plugin for R data files.

That means if you install this plugin (download and unzip [`QuickLookR.qlgenerator.zip`](https://github.com/hrbrmstr/QuickLookR/releases/tag/v0.1.0) and put `QuickLookR.qlgenerator` into `~/Library/QuickLook`) you can hit the spacebar on an R Data or saved RDS file (`.rdata`, `.rda`, `.rds` are currently supported extensions) and get a `str()` preview without firing up R/RStudio.
That means if you install this plugin (download and unzip [`QuickLookR.qlgenerator.zip`](https://github.com/hrbrmstr/QuickLookR/releases/tag/v0.2.0) and put `QuickLookR.qlgenerator` into `~/Library/QuickLook`) you can hit the spacebar on an R Data or saved RDS file (case-insentitive `.rdata`, `.rda`, `.rds`, `.rmd` are currently supported extensions) and get a `str()` preview (for data files) without firing up R/RStudio and the ability to preview Rmd source files and then optionally go right to editing..

It looks for `Rscript` in `/usr/local/bin` and (for now) requires a helper package [`rdatainfo`](https://github.com/hrbrmstr/rdatainfo). `devtools::install_github("hrbrmstr/rdatainfo")` to install that.

For the moment, the QuickLook preview is rather plain, but I hope to improve the output and switch to reading the data files at the C-level by linking directly to `R.framework`.

![](man/figures/icons.png)

![](man/figures/rda.png)

![](man/figures/rdata.png)

![](man/figures/rmd.png)
\ No newline at end of file

A man/figures/icons.png => man/figures/icons.png +0 -0

A man/figures/rda.png => man/figures/rda.png +0 -0

A man/figures/rdata.png => man/figures/rdata.png +0 -0

A man/figures/rds.png => man/figures/rds.png +0 -0

A man/figures/rmd.png => man/figures/rmd.png +0 -0